The first positive integers are each written in base . How many of these base- representations are palindromes? (A palindrome is a number that reads the same forward and backward.)
Pick one
Solution
All numbers of six or less digits in base 3 have been written.
The form of each palindrome is as follows
1 digit -
2 digits -
3 digits -
4 digits -
5 digits -
6 digits -
Where are base 3 digits
Since , this gives a total of palindromes so far.
7 digits - , but not all of the numbers are less than
Case:
All of these numbers are less than giving more palindromes
Case: ,
All of these numbers are also small enough, giving more palindromes
Case: ,
It follows that , since any other would make the value too large. This leaves the number as . Checking each value of d, all of the three are small enough, so that gives more palindromes.
Summing our cases there are
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.