2003 AIME I Problems/Problem 9
Problem
An integer between and , inclusive, is called balanced if the sum of its two leftmost digits equals the sum of its two rightmost digits. How many balanced integers are there?
Solution
If the common sum of the first two and last two digits is , such that , there are choices for the first two digits and choices for the second two digits (since zero may not be the first digit). This gives balanced numbers. If the common sum of the first two and last two digits is , such that , there are choices for both pairs. This gives balanced numbers. Thus, there are in total balanced numbers.
Both summations may be calculated using the formula for the sum of consecutive squares, namely .
Solution 2 (Painful Casework)
Call the number . Then . Set .
Clearly, $2\lex\le18$ (Error compiling LaTeX. Unknown error_msg).
If : The only case is or . 2 choices.
If : then since , or . There are 3 choices for : 2*3=6$here.
If$ (Error compiling LaTeX. Unknown error_msg)x=3a\neqb(a,b)=(3,0)43c=0d=0(c,d)3*4=12$here.
If$ (Error compiling LaTeX. Unknown error_msg)x=44(a,b)5(c,d)4*5=20$here.
If$ (Error compiling LaTeX. Unknown error_msg)x=55*6=30$.
If$ (Error compiling LaTeX. Unknown error_msg)x=66*7=42$.
If$ (Error compiling LaTeX. Unknown error_msg)x=77*8=56$.
If$ (Error compiling LaTeX. Unknown error_msg)x=88*9=72$.
If$ (Error compiling LaTeX. Unknown error_msg)x=99*10=90$.
Now we need to be careful because if$ (Error compiling LaTeX. Unknown error_msg)x=10(c,d)=(0,10)a\neq0$.
If$ (Error compiling LaTeX. Unknown error_msg)x=10(a,b)=(1,9), (2, 8), ..., (9, 1)(c,d)9*9=81$.
If$ (Error compiling LaTeX. Unknown error_msg)x=11(a,b)= (2,9)8*8$.
Continue this pattern until$ (Error compiling LaTeX. Unknown error_msg)x=18: 1*1=1\boxed{615}$.
~hastapasta
See also
2003 AIME I (Problems • Answer Key • Resources) | ||
Preceded by Problem 8 |
Followed by Problem 10 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.