Prove that the numbers that begin with 1 and end with 1, with any number of 2s in the middle, and all 1s and 2s separated by 00 are composite.
For example:
1002001
1002002001,
1002002002001,
1002002002002001
We know that,
a^x + 2*a^(x-1) + 2*a^(x-2)+ ......+ 2a + 1
= (a+1)(a^(x-1) + a^(x-2)+ ......+ a + 1)
Substituting a = 1000, we have:
1000^x + 2*1000^(x-1) + 2*1000^(x-2)+ ......+ 2*1000 + 1
= 1001*(1000^(x-1) + 1000^(x-2)+ ......+ 1000 + 1)
Consequently, all the numbers having the given form is always divisible by 1001, and therefore composite.