1997 AIME Problem 2

Attempt Problem 2 of the 1997 AIME 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 1997 AIME solutions, or check the answer key.

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

2.

The nine horizontal and nine vertical lines on an 8×88 \times 8 checkerboard form rr rectangles, of which ss are squares. The number sr\frac{s}{r} can be written in the form mn,\frac{m}{n}, where mm and nn are relatively prime positive integers. Find m+n.m + n.
Answer: 125
Concepts:counting shapes in figurescombinationssum of first n squares
Small hint:
A rectangle is determined by choosing 22 of the 99 horizontal lines and 22 of the 99 vertical lines
Big hint:
There are (9−k)2(9 - k)^2 squares of size k×k;k \times k; sum over k=1k = 1 to 88
Solution:
A rectangle is determined by choosing two of the nine horizontal lines and two of the nine vertical lines, so r=(92)2=362=1296.r = \binom{9}{2}^2 = 36^2 = 1296.
A k×kk \times k square can be placed in (9−k)2(9 - k)^2 positions, so s=∑k=18(9−k)2=82+72+⋯+12=8⋅9⋅176=204. \begin{aligned} s &= \sum_{k=1}^{8} (9 - k)^2 \\ &= 8^2 + 7^2 + \cdots + 1^2 \\ &= \frac{8 \cdot 9 \cdot 17}{6} = 204. \end{aligned}
Then sr=2041296=17108,\frac{s}{r} = \frac{204}{1296} = \frac{17}{108}, which is in lowest terms, so m+n=17+108=125.m + n = 17 + 108 = 125.
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.