Skip to main content

2021 AMC 12B Problem 25

Problem 25 of 25HarderAlgebraGeometry

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?

Answer choices

Show solution

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

Tagged: lattice point · floor and ceiling functions

More practice