AMC 10 · 2007 · #21
Grade 7 countingnumber-theoryPick an answer.
The ceiling 2007 is written in base 10, which tells us nothing about base-3 digits, so Tool #15 (Organize Information in More Ways) says: rewrite the ceiling in base 3 first. It turns out to have 7 digits, which splits the job in two (Tool #7, Identify Subproblems). Strings of 6 digits or fewer are all far below the ceiling, so they need no checking at all — just counting, and a palindrome is completely determined by its front half, so Tool #2 (Make a Systematic List) counts each length in one multiplication. Only the 7-digit strings feel the ceiling. There are just 54 of them, and far fewer are too big than are small enough, so Tool #16 (Change Focus / Count the Complement) counts the ones to throw away instead. Comparing two 7-digit strings digit by digit is the one step that needs proof rather than assertion, and Tool #14 (Extreme Principle) supplies it: even the largest possible tail cannot make up for losing one unit at a higher place.
Rewrite the ceiling in base 3
Rewriting the ceiling in the same base shows where it bites.
You cannot compare digit strings against a number written in a different base, so move the ceiling into the same language first.
6.EE.A.1Organize Information In More WaysSplit at seven digits
Shorter lengths fit entirely inside the range.
Separating the safe block from the block that touches the ceiling means you only have to be careful in one place.
4.NBT.A.2Identify SubproblemsCount palindromes by their front half
Counting by front halves gives 52 from those.
Half of a palindrome is throwaway information, so counting the front halves counts the palindromes exactly once each.
7.SP.C.8Make A Systematic ListWhy digit-by-digit comparison is valid
Digit-by-digit comparison is valid because a full tail cannot carry.
One unit at a place is worth more than every lower place stuffed full, so the first difference settles the comparison for good.
One unit at a place is worth more than every lower place stuffed full, so the first difference settles the comparison.
▸ Why?
Each place is worth the whole base times the one below it, so it outweighs everything beneath.
▸ Why?
Once one number leads at that place, nothing further down can turn the comparison around.
Throw away the seven-digit palindromes that are too big
Trimming the too-large longest ones leaves 48.
Only six of the fifty-four overshoot, so it is far quicker and safer to name the six than to re-derive the forty-eight.
7.SP.C.8Change Focus Count The ComplementAdd the two blocks
Adding gives 100, choice (A).
Sorting by digit length gives blocks that neither overlap nor leave gaps, so the counts simply add.
4.OA.A.3Identify SubproblemsA palindrome is just its front half written twice, so count front halves — and when a ceiling cuts through the longest block, it is usually faster to count the few strings that overshoot than the many that fit.
- Rewrite the ceiling in base 3
- Split at seven digits
- Count palindromes by their front half
- Why digit-by-digit comparison is valid
- Throw away the seven-digit palindromes that are too big
- Add the two blocks