A number is called a palindrome if it reads the same backward as well as forward. For example 285582 is a six digit palindrome. The number of six digit palindromes, which are divisible by 55, is ________.
Solution
Core idea. A palindrome with an even number of digits always passes the test for eleven.
Concept refresher. A number is divisible by eleven exactly when the difference between the sum of its digits in odd places and the sum in even places,
is zero or a multiple of eleven.
Picture the situation. A six-digit palindrome is fixed by its first three digits , , , since the last three repeat them in reverse. Divisibility by 55 means divisibility by 5 and by 11. In a palindrome of even length each digit appears once in an odd place and once in an even place, so the test for 11 is passed automatically. Only divisibility by 5 restricts the digits.
Approach. Show that the test for eleven always holds, then apply divisibility by 5 to the outer digit.
Step 1: Divisibility by eleven
The number has digits , , , , , . The sums of the digits in odd and in even places are both , so their difference is 0 and every such palindrome is divisible by 11.
Step 2: Divisibility by 5
The last digit must be 0 or 5, and it is also the first digit, so it cannot be 0. Hence , while and are free with 10 choices each, giving palindromes.
Answer. 100
Sanity check. For example 585585 is such a palindrome, and it equals 55 times 10647.
Common wrong answers
- 200: Allowing the outer digit to be 0 as well as 5 gives 200, but a number starting with 0 is not a six-digit number.
Key takeaway
The trap. The last digit of a palindrome is also its first digit, so it cannot be zero.
How toppers think. They spot that one of the two conditions is automatic and spend no time on it.
Remember.