Let us have a finite sequence with only $0$ and $1$ digit in our numbers(it can begin with $0$ too). $a_n$ is the number, which we get if we write our number $n$ times next to each other. Prove, that if $n>2$, our numbers are composite.
It is quite hard to understand, here is some examples. Let us have the $01$ sequence, then:
$a_1=1, a_2=101, a_3=10101...$(the 0 at the beginning doesn't count, you can see that $a_3$ can't be a prime)
If we have the $101$ sequence, then:
$a_1=101, a_2=101101...$
How do I prove this in general? It seems hard, but maybe there is a good tactic? :) Thanks.