2003 AIME I Problem 9

Attempt Problem 9 of the 2003 AIME I below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2003 AIME I solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

9.

An integer between 10001000 and 9999,9999, 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?
Answer: 615
Concepts:digitscaseworksum of first n squares
Small hint:
Group by the common digit-pair sum s;s; count leftmost pairs (first digit nonzero) and rightmost pairs separately
Big hint:
For s≤9s \le 9 the counts are ss and s+1;s + 1; for s≥10s \ge 10 both equal 19−s.19 - s. Sum the products.
Solution:
Group the balanced integers by the common sum ss of each digit pair, where 1≤s≤18.1 \le s \le 18. For s≤9,s \le 9, the leftmost pair (first digit at least 11) can be formed in ss ways and the rightmost pair in s+1s + 1 ways. For s≥10,s \ge 10, both digits of each pair must be at least s−9,s - 9, giving 19−s19 - s ways for each pair.
The total count is ∑s=19s(s+1)+∑s=1018(19−s)2=∑s=19(s2+s)+∑k=19k2=2⋅285+45=615. \begin{aligned} &\sum_{s=1}^{9} s(s+1) + \sum_{s=10}^{18} (19 - s)^2 \\ &= \sum_{s=1}^{9} (s^2 + s) + \sum_{k=1}^{9} k^2 \\ &= 2 \cdot 285 + 45 = 615. \end{aligned}
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.