2007 AMC 12B Problems/Problem 21
Problem
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.)
Solution 1
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
Solution 2 (similar to 1, no cases)
Notice 2017 (base 3) is 2202100. This means we aim to find palindromes up to 2202100 using only digits (0,1,2) as we are in base 3. Therefore, there are 3 options for each letter (with the exception of a, which has 2 options; this is because we don't want to consider leading zeroes as this only complicates things). Then, consider: 1 digit palindromes are of the form , 2 digit of the form , 3 of the form , 4 of the form , and so on.
Since some digits repeat, it suffices to call them of the form , , , , , , for palindromes up to six digits. This gives us options respectively, or 106 total.
For seven digits, we aim to find all 7-digit palindromes, minus the ones greater than 2202100. There are options for 7-digit palindromes (as they are of the form ), and if we aim to find ones greater than 2202100, we know the last two digits are both 2 (considering there are no options greater than 22 for the first two). Therefore we are left with , with 2 options for (because there are no palindromes above 021 with ), and 3 options for , giving 6 options total. Therefore the total number of base-3 palindromes below 2202100 is
~Stress-couture
See Also
2007 AMC 12B (Problems • Answer Key • Resources) | |
Preceded by Problem 20 |
Followed by Problem 22 |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | |
All AMC 12 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.