AMC 10 Step by Step

2021 AMC 10B Problem 25

P21-25~10 minPrint

Let SS be the set of lattice points in the coordinate plane, both of whose coordinates are integers between 11 and 3030 , inclusive. Exactly 300300 points in SS lie on or below a line with equation y=mxy = mx . The possible values of mm lie in an interval of length ab\frac{a}{b} , where aa and bb are relatively prime positive integers. What is a+b ?a + b ?

Log in to save your progress.
Show solution without answering

Key insight

The area under the line is 450m, so try slope 2/3: exactly 300 points. The count stays 300 until the line reaches the point (28, 19).

Solution

Step 1: count points column by column.

  1. The slope must be less than 11 here (with slope 11 the line already has 465465 points on or below it). For such a slope mm, in column xx the points on or below the line are (x,1),(x,2),…(x, 1), (x, 2), \ldots up to height mxmx. So column xx holds mxmx rounded down points.
  2. The total is roughly the area of the triangle under the line from x=0x = 0 to x=30x = 30: 12×30×30m=450m\frac12 \times 30 \times 30m = 450m. Setting 450m=300450m = 300 suggests m=23m = \frac23.

Step 2: check m=23m = \frac23 exactly.

  1. Look at the first few columns: x=1,2,3x = 1, 2, 3 give heights 23,43,2\frac23, \frac43, 2, which round down to 0,1,20, 1, 2. That is 33 points.
  2. The next three columns x=4,5,6x = 4, 5, 6 give 2,3,42, 3, 4 points: 99 in total. Each group of three columns has 66 more points than the group before it.
  3. The ten groups hold 3,9,15,…,573, 9, 15, \ldots, 57 points. Their sum is (3+57)×102=300\frac{(3 + 57) \times 10}{2} = 300. Exactly right, so m=23m = \frac23 works.

Step 3: the left end of the interval.

  1. The line y=23xy = \frac23 x passes exactly through 1010 points of SS: (3,2),(6,4),…,(30,20)(3, 2), (6, 4), \ldots, (30, 20). They count, because "on" the line is allowed.
  2. Lowering the slope even a tiny bit drops those 1010 points below 300300. So 23\frac23 is the smallest slope that works.

Step 4: the right end of the interval.

  1. As the slope grows from 23\frac23, the count stays at 300300 until the line hits a new point of SS. So we need the point (x,y)(x, y) whose slope yx\frac{y}{x} is just above 23\frac23, with x,yx, y between 11 and 3030.
  2. Compare yx\frac{y}{x} with 23\frac23 using a common denominator: yx−23=3y−2x3x\frac{y}{x} - \frac23 = \frac{3y - 2x}{3x}. To make this small, make the top as small as possible (namely 11) and the bottom as large as possible.
  3. 3y−2x=13y - 2x = 1 has solutions (x,y)=(1,1),(4,3),(7,5),…(x, y) = (1, 1), (4, 3), (7, 5), \ldots, with xx going up by 33 each time. The largest xx up to 3030 is x=28x = 28, y=19y = 19. The gap is 13⋅28=184\frac{1}{3 \cdot 28} = \frac{1}{84}.
  4. Any point with 3y−2x=23y - 2x = 2 or more has a gap of at least 23⋅30=145\frac{2}{3 \cdot 30} = \frac{1}{45}, which is bigger. So (28,19)(28, 19) is the next point the line reaches, at slope 1928\frac{19}{28}. At that slope the count becomes 301301, so 1928\frac{19}{28} itself does not work.

Step 5: the length.

12. The slopes that work run from 23\frac23 up to (but not including) 1928\frac{19}{28}. The length is
1928−23=57−5684=184.\frac{19}{28} - \frac23 = \frac{57 - 56}{84} = \frac{1}{84}.
13. So a+b=1+84=85a + b = 1 + 84 = 85.

The answer is (E) 85\boxed{\textbf{(E)}\ 85}.

Why this works

The number of points under a line changes only when the line sweeps across a point. So the good slopes form an interval between two "point slopes." An area estimate finds the right neighborhood fast, and then the question becomes which fraction with a small bottom number sits closest above 23\frac23.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

For 0<m≤10 < m \le 1, the points of SS on or below y=mxy = mx in column xx are (x,1),…,(x,⌊mx⌋)(x, 1), \dots, (x, \lfloor mx \rfloor), so the count is N(m)=∑x=130⌊mx⌋N(m) = \sum_{x=1}^{30} \lfloor mx \rfloor. This is roughly the area 12⋅30⋅30m=450m\frac12 \cdot 30 \cdot 30m = 450m, and 450m=300450m = 300 suggests m=23m = \frac23.

Check m=23m = \frac23. Group xx into triples 3k+1,3k+2,3k+33k+1, 3k+2, 3k+3 for k=0,…,9k = 0, \dots, 9: the floors are 2k,2k+1,2k+22k, 2k+1, 2k+2, summing to 6k+36k + 3. Total ∑k=09(6k+3)=6⋅45+30=300\sum_{k=0}^{9}(6k+3) = 6 \cdot 45 + 30 = 300. Exactly right.

Lower end. The ten points (3,2),(6,4),…,(30,20)(3, 2), (6, 4), \dots, (30, 20) lie on the line and are counted. Any m<23m < \frac23 loses them, so 23\frac23 is the left endpoint (included).

Upper end. As mm grows, N(m)N(m) stays 300300 until the line reaches another point of SS, i.e. until mm equals the smallest fraction yx>23\frac{y}{x} > \frac23 with x,y≤30x, y \le 30. Since yx−23=3y−2x3x\frac yx - \frac23 = \frac{3y - 2x}{3x}, the best candidates have 3y−2x=13y - 2x = 1 with xx as large as possible: x≡1(mod3)x \equiv 1 \pmod 3, so x=28x = 28, y=19y = 19, giving a gap of 184\frac{1}{84}. Any fraction with 3y−2x≥23y - 2x \ge 2 has gap at least 290>184\frac{2}{90} > \frac{1}{84}. So the interval is [23,1928)\left[\frac23, \frac{19}{28}\right).

Its length is 1928−23=57−5684=184\frac{19}{28} - \frac23 = \frac{57 - 56}{84} = \frac{1}{84}, so a+b=85a + b = 85.

The answer is (E) 85\boxed{\textbf{(E)}\ 85}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.