AoPSWiki
Art of Problem Solving celebrates the many
accomplishments of its students and community members.

2007 AIME II Problems/Problem 5

From AoPSWiki

Problem

The graph of the equation 9x+223y=2007 is drawn on graph paper with each square representing one unit in each direction. How many of the 1 by 1 graph paper squares have interiors lying entirely below the graph and entirely in the first quadrant?

Contents

Solution

Solution 1

There are 223 \cdot 9 = 2007 squares in total formed by the rectangle with edges on the x and y axes and with vertices on the intercepts of the equation, since the intercepts of the lines are (223,0),\ (0,9).

Count the number of squares that the diagonal of the rectangle passes through. Since the two diagonals of a rectangle are congruent, we can consider instead the diagonal y = \frac{223}{9}x. This passes through 8 horizontal lines (y = 1 \ldots 8) and 222 vertical lines (x = 1 \ldots 222). At every time we cross a line, we enter a new square. Since 9 and 223 are relatively prime, we don’t have to worry about crossing an intersection of a horizontal and vertical line at one time. We must also account for the first square. This means that it passes through 222 + 8 + 1 = 231 squares.

The number of non-diagonal squares is 2007 - 231 = 1776. Divide this in 2 to get the number of squares in one of the triangles, with the answer being \frac{1776}2 = 888.

Solution 2

Count the number of each squares in each row of the triangle. The intercepts of the line are (223,0),\ (0,9).

In the top row, there clearly are no squares that can be formed. In the second row, we see that the line y = 8 gives a x value of \frac{2007 - 8(223)}{9} = 24 \frac 79, which means that \lfloor 24 \frac 79\rfloor = 24 unit squares can fit in that row. In general, there are

\sum_{i=0}^{8} \lfloor \frac{223i}{9} \rfloor

triangles. Since \lfloor \frac{223}{9} \rfloor = 24, we see that there are more than 24(0 + 1 + \ldots + 8) = 24(\frac{8 \times 9}{2}) = 864 triangles. Now, count the fractional parts. \lfloor \frac{0}{9} \rfloor = 0, \lfloor \frac{7}{9} \rfloor = 0, \lfloor \frac{14}{9} \rfloor = 1,<cmath> \lfloor \fra.... Adding them up, we get 864 + 1 + 2 + 3 + 3 + 4 + 5 + 6 = 888.

Solution 3

From Pick's Theorem, \frac{2007}{2}=\frac{233}{2}-\frac{2}{2}+\frac{2I}{2}. In other words, 2I=1776 and I is 888.

Solution 4

We know that the number of squares intersected in an m\times{n} rectangle is m + n -\mbox{gcd}(m,n). So if we apply that here, we get that the number of intersected squares is:

9 + 223 - 1 = 231.

Now just subtract that from the total number of squares and divide by 2, since we want the number of squares below the line.

So,

\frac{2007 - 231}{2} = \frac{1776}{2} = \fbox{888}

See also

2007 AIME II (ProblemsResources)
Preceded by
Problem 4
Followed by
Problem 6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Looking for a challenging algebra text? Preparing for MATHCOUNTS or the AMC exams?
Check out Art of Problem Solving's Introduction to Algebra by Richard Rusczyk.
© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us