Skip to main content

1997 AIME Problem 2

Problem 2 of 15EasierAlgebraCombinatorics

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.

Your answer

Integer from 0 to 999
Show solution

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.
AoPS wiki

Tagged: counting shapes in figures · combinations · sum of first n squares

More practice