SASMO Counting: A Five-Digit Palindrome Has Only Three Independent Digit Choices

A palindrome reads the same forwards and backwards. That condition makes some positions dependent on others, so counting every position as a fresh unrestricted choice will overcount the possibilities.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO PALINDROME 1030 and tell us your school year and question.

Write the forced pattern first

A five-digit decimal palindrome has the form ABCBA. Once A, B and C have been chosen, the last two digits must be B and A. There is no new choice for either mirrored position.

A cannot be zero because the number must have five digits. B and C may be zero unless the question adds another restriction. Letters in this representation stand for digits, not a product of variables.

Count the independent choices

For this original counting exercise, A has nine choices, while B and C each have ten. The total is therefore 9 × 10 × 10 = 900.

For example, A = 4, B = 0 and C = 7 produce 40704. It is a valid five-digit palindrome even though an internal digit is zero. Leading-zero and internal-zero restrictions are different.

Add a distinctness condition carefully

If the three selected digits A, B and C must be pairwise different, A still has nine choices. B has nine choices because it may be any digit except A, including zero. C then has eight choices.

The resulting count is 9 × 9 × 8 = 648. This does not mean all five displayed digits differ: mirrored positions repeat by the definition of a palindrome. Requiring all five displayed digits to be different would make this problem impossible.

Check that each selection makes one number

Each ordered selection of A, B and C gives exactly one ABCBA number, and every such number reveals its first three digits. That one-to-one correspondence explains why the product counts each number once.

This original SASMO-style learning problem is not an official question. For a follow-up, count four-digit palindromes by writing their pattern before choosing digits; do not assume the five-digit count applies merely because both kinds read the same in reverse.

Continue reading: SASMO Reasoning Practice: Test an Always Claim with a Counterexample.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO PALINDROME 1030. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send SASMO PALINDROME 1030.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service