Let be the set of lattice points in the coordinate plane, both of whose coordinates are integers between and , inclusive. Exactly points in lie on or below a line with equation . The possible values of lie in an interval of length , where and are relatively prime positive integers. What is
- A)
- B)
- C)
- D)
- E)
Answer
E
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.
- The slope must be less than here (with slope the line already has points on or below it). For such a slope , in column the points on or below the line are up to height . So column holds rounded down points.
- The total is roughly the area of the triangle under the line from to : . Setting suggests .
Step 2: check exactly.
- Look at the first few columns: give heights , which round down to . That is points.
- The next three columns give points: in total. Each group of three columns has more points than the group before it.
- The ten groups hold points. Their sum is . Exactly right, so works.
Step 3: the left end of the interval.
- The line passes exactly through points of : . They count, because "on" the line is allowed.
- Lowering the slope even a tiny bit drops those points below . So is the smallest slope that works.
Step 4: the right end of the interval.
- As the slope grows from , the count stays at until the line hits a new point of . So we need the point whose slope is just above , with between and .
- Compare with using a common denominator: . To make this small, make the top as small as possible (namely ) and the bottom as large as possible.
- has solutions , with going up by each time. The largest up to is , . The gap is .
- Any point with or more has a gap of at least , which is bigger. So is the next point the line reaches, at slope . At that slope the count becomes , so itself does not work.
Step 5: the length.
12. The slopes that work run from up to (but not including) . The length is
13. So .
The answer is .
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 .
The trap
Forgetting that points on the line count, so 2/3 itself works and is the left end, or taking an interval centered on 2/3.
Concise solution
For , the points of on or below in column are , so the count is . This is roughly the area , and suggests .
Check . Group into triples for : the floors are , summing to . Total . Exactly right.
Lower end. The ten points lie on the line and are counted. Any loses them, so is the left endpoint (included).
Upper end. As grows, stays until the line reaches another point of , i.e. until equals the smallest fraction with . Since , the best candidates have with as large as possible: , so , , giving a gap of . Any fraction with has gap at least . So the interval is .
Its length is , so .
The answer is .
Review in the AoPS books
- Introduction to Geometry, Chapter 17: Analytic Geometry
- Introduction to Number Theory, Chapter 11: Decimals and Fractions
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Introduction to Algebra, Chapter 8: Graphing Lines
Techniques
Bound the quantity above/below or estimate to pin it down · Test small/specific values or special cases to find or verify the answer