/

AMC8 2024

AMC8 2024 · Q23

AMC8 2024 · Q23. It mainly tests Counting in geometry (lattice points), GCD & LCM.

Rodrigo has a very large sheet of graph paper. First he draws a line segment connecting point $(0,4)$ to point $(2,0)$ and colors the $4$ cells whose interiors intersect the segment, as shown below. Next Rodrigo draws a line segment connecting point $(2000,3000)$ to point $(5000,8000)$. How many cells will he color this time?
Rodrigo 有一张非常大的方格纸。首先他画一条从点 $(0,4)$ 到点 $(2,0)$ 的线段,并涂色与该线段内部相交的 $4$ 个单元格,如下图所示。接下来 Rodrigo 画一条从点 $(2000,3000)$ 到点 $(5000,8000)$ 的线段。这次他将涂色多少个单元格?
stem
(A) 6000 6000
(B) 6500 6500
(C) 7000 7000
(D) 7500 7500
(E) 8000 8000
Answer
Correct choice: (C)
正确答案:(C)
Solution
Let $f(x, y)$ be the number of cells the line segment from $(0, 0)$ to $(x, y)$ passes through. The problem is then equivalent to finding \[f(5000-2000, 8000-3000)=f(3000, 5000).\] Sometimes the segment passes through lattice points in between the endpoints, which happens $\text{gcd}(3000, 5000)-1=999$ times. This partitions the segment into $1000$ congruent pieces that each pass through $f(3, 5)$ cells, which means the answer is \[1000f(3, 5).\] Note that a new square is entered when the lines pass through one of the lines in the coordinate grid, which for $f(3, 5)$ happens $3-1+5-1=6$ times. Because $3$ and $5$ are relatively prime, no lattice point except for the endpoints intersects the line segment from $(0, 0)$ to $(3, 5).$ This means that including the first cell closest to $(0, 0),$ The segment passes through $f(3, 5)=6+1=7$ cells. Thus, the answer is $\boxed{\textbf{(C)}7000}.$ Alternatively, $f(3, 5)$ can be found by drawing an accurate diagram, leaving you with the same answer. Note: A general form for finding $f(x, y)$ is $x+y-\text{gcd}(x, y).$ We subtract $\text{gcd}(x, y)$ to account for overlapping, when the line segment goes through a lattice point.
设 $f(x, y)$ 表示从 $(0, 0)$ 到 $(x, y)$ 的线段经过的单元格数。本题等价于求 $f(5000-2000, 8000-3000)=f(3000, 5000)$。线段在端点间经过格点的情况发生 $\gcd(3000, 5000)-1=999$ 次。这将线段分成 $1000$ 段全等的部分,每段经过 $f(3, 5)$ 个单元格,因此答案为 $1000 f(3, 5)$。对于 $f(3, 5)$,线段穿过坐标网格线 $3-1+5-1=6$ 次。由于 $3$ 和 $5$ 互质,除端点外无其他格点相交。包括起点最近的单元格,总共 $f(3, 5)=6+1=7$ 个单元格。因此答案为 $\boxed{\textbf{(C)}7000}$。 注:一般公式为 $f(x, y) = x+y-\gcd(x, y)$,减去 $\gcd(x, y)$ 以补偿经过格点时的重叠。
Topics
Related Questions
Practice full AMC exams on amcdrill.
Try full-length practice and diagnostics at www.amcdrill.com.