2021 AMC 12B Spring Problem 25

Attempt Problem 25 of the 2021 AMC 12B Spring 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 2021 AMC 12B Spring solutions, or check the answer key.

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

25.

Let SS be the set of lattice points in the coordinate plane, both of whose coordinates are integers between 11 and 30,30, inclusive. Exactly 300300 points in SS lie on or below a line with equation y=mx.y=mx. The possible values of mm lie in an interval of length ab,\dfrac{a}{b}, where aa and bb are relatively prime positive integers. What is a+b?a+b?
3131
4747
6262
7272
8585
Answer: E
Concepts:lattice pointfloor and ceiling functions
Small hint:
For a given m,m, column xx contributes min⁡(30,⌊mx⌋)\min(30,\lfloor mx\rfloor) points at or below the line
Big hint:
As mm increases, the count jumps at slopes yx;\tfrac{y}{x}; find the two consecutive such slopes bracketing a count of 300300
Solution:
For slope m,m, column xx (with 1≤x≤301\le x\le 30) contributes min⁡(30,⌊mx⌋)\min(30,\lfloor mx\rfloor) points on or below y=mx,y=mx, and we need the total to equal 300.300.
At m=23,m=\tfrac23, the cap at 3030 is inactive and ∑x=130⌊2x3⌋=300.\sum_{x=1}^{30}\lfloor \frac{2x}{3}\rfloor=300. The count remains fixed until the next larger slope yx\frac{y}{x} with x≤30.x\le30.
If yx>23,\frac{y}{x}>\frac{2}{3}, then 3y−2x3y-2x is a positive integer. The closest possibility has 3y−2x=1;3y-2x=1; maximizing x≤30x\le30 in this congruence gives (y,x)=(19,28).(y,x)=(19,28). Any numerator at least 22 gives a larger gap. Hence the interval is [23,1928),[\tfrac23,\tfrac{19}{28}), whose length is 1928−23=184.\tfrac{19}{28}-\tfrac23=\tfrac1{84}.
Since gcd⁡(1,84)=1,\gcd(1,84)=1, a+b=1+84=85.a+b=1+84=85.
Thus, the correct answer is E.
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.