CEMC Banner

Problem of the Week
Problem D and Solution
Again in Reverse

Problem

A palindrome is a word or phrase which reads the same forwards and backwards, ignoring spaces and punctuation. Numbers which remain the same when the digits are reversed are also considered to be palindromes. For example \(9\,357\,539\), \(6116\), and \(2\) are all palindromes.

How many positive integers less than \(1\,000\,000\) are palindromes?

Signs with the phrases "No lemons, no melon" and "Was it a
car or a cat I saw?"

Solution

We consider cases, based on the number of digits in the palindrome. Since we are looking for positive integers less than \(1\,000\,000\), the minimum number of digits is one and the maximum is six.

Thus, there are \(9+9+90+90+900+900=1998\) palindromes less than \(1\,000\,000.\)