"Any fool can do mathematics. All that it needs is perseverance."
( Alonzo Church, an English logician).
Q) Find all primes in the sequence
1,101,10101,1010101,..., in which the digits 1 & 0 alternate, starting, & ending , with 1.
You can easily identify some composites in the sequence.
Thus the 3rd, 6th, 9th,..., terms are divisible by 3 ; the 11th, 22nd, 33rd,..., terms are divisible by 11.
On the other hand,101 is prime.
However, these observations do not complete your investigation.
Let n be the term having k 1's ( & k-1 0's).
The crucial move is
99n= 99...9 ( 2k times)
= 10^(2k) -1
= ( 10^k -1)(10^k +1)...(*)
If n were prime, then n must divide one of 10^k-1 & 10^k + 1 ( Why ?)
In case of the former, via(*), 10^k +1 divides 99, which is impossible.
In case of the latter, via (*), 10^k -1 divides 99, implying k =1 or 2. We are done.
A: There is only one prime, 101, in the list.
( A crisp proof comes only after a great deal of scratch work, which is seldom discolsed).