Quote:
Originally Posted by implex the fact that two successive palindromes having same no of digits where digit >2 has non prime difference
is two successive palindromes will differ only in the tens place or in the 100s place [(b+1)-b].10 so the difference will be 10 or 100 or 1000...
if the difference is other than 10,100 , it must be change in the units digit which will lead to a difference of 2
At first sight this might look vague.
But it is totally rigorous.
Check for yourself! |
it can be proved in the foll manner:
we consider 2 cases:
case 1: when the no. of digits is odd...
take an eg of 5 digit palindrome. it will be of the form:
10001a+1010b+100c. {a,b,c can be ne of the digits with a not=0}
now successive palindrome will differ only in 'c'. so the diff will be (10^x)*c. so it will never be a prime.
case 2: when no. of digits=even
eg: 4 digits palindrome of the form
1001a+110b
so again diff among successive will be of the form (11*10^x)*b thus never a prime.
we will thus get only 2 primes: one when the difference is 11 {i.e. diff betwen 2 successive 2-digit primes}
or when diff=2 {when we move from a lower to higher digit successive prime}
cheers..