Palindromes

Find the number of palindromes between 11 and 1 0 10 1 10^{10}-1 (both inclusive).


If you are looking for more such simple but twisted questions, Twisted problems for JEE aspirants is for you!
11 × 99 11\times99 111 × 99 111\times99 1111 × 99 1111\times99 None of these choices 11111 × 9999 11111\times9999 11111 × 999 11111\times999

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Pratyush Pandey
Jan 28, 2017

We need to find all palindromes with at most 10 digits.

1) Finding palindromes containing even digits - Pick any number between 1 and 99999, and append it mirrored, for example: 132.321 = 132231. You get a palindrome. So there are 99999 palindromes of even length smaller than 10^10.

2) Finding palindromes containing odd digits -
Now, if the length is odd, the middle digit is not important, so there are 10 times as many 2n+1 digit palindromes, as there are 2n digit palindromes. In other words, pick a number between 1 and 9999 and append it backwards keeping one position empty between our original and backwards number. Any number from 0 to 9 can fill that position. So there are 9999 ways to pick a number to append backwards times 10 ways to fill the empty gap, giving us 99990 palindromes of odd length less than 10^10. Eg-if you pick 123, palindrome obtained is 123x321 where x can take any number from 0-9.

So there are 99999 + 99990 = 199989 palindromes.

11 * 99=11 (100-1)=1100-11=1 *9.......So for each of the given multiple, the highest placed digit will be 1 and the unit digit 9. Hence non of them..

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...