Showing that numbers of the form 10101010...1 are composite

307 Views Asked by At

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.

2

There are 2 best solutions below

1
On BEST ANSWER

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$

0
On

Hint: view the number as a geometric series. The first term is $1$ and the ratio is $100$. Use the formula for the sum of a geometric series, then see the numerator as a difference of two squares.