I want to prove that all numbers of the form 1010101010...1 are composite except for 101.
I'm able to prove it for all numbers with an even number of ones, but I can't figure out any ideas for the remaining numbers.
I want to prove that all numbers of the form 1010101010...1 are composite except for 101.
I'm able to prove it for all numbers with an even number of ones, but I can't figure out any ideas for the remaining numbers.
You have numbers of the form $\dfrac{100^n-1}{99}=\dfrac{(10^{n}-1)(10^{n}+1)}{9\times 11}$:
If $n$ is odd you have $\dfrac{100^{2k-1}-1}{99}=\dfrac{10^{2k-1}-1}{9} \times \dfrac{10^{2k-1}+1}{11}$
If $n$ is even you have $\dfrac{100^{2k}-1}{99}=\dfrac{10^{2k}-1}{99} \times \dfrac{10^{2k}+1}{1}$
and these factors are all integers, though some may be equal to $1$ when $k=1$