DR.WANG Mathematics中文

2024 AMC 8 · Question 23

Number theory · greatest common divisor · lattice point · geometry

Problem outline

On a unit square grid, draw the segment joining (2000,3000)(2000,3000) to (5000,8000)(5000,8000). How many distinct squares have an interior point on the segment? Touching only a corner does not count.

Show answer and methods 2 methods

Answer

C. 70007000 squares.

Method 1 Correct for double-counted crossings

The horizontal displacement is 5000−2000=30005000-2000=3000 and the vertical displacement is 8000−3000=50008000-3000=5000. Start in one cell. Before the endpoint there are 29992999 vertical and 49994999 horizontal line crossings. Each crossing enters one new cell, except that simultaneous vertical and horizontal crossings must be counted as one event.

The displacement is 1000(3,5)1000(3,5) and 3,53,5 are coprime, so the 999999 intermediate multiples of (3,5)(3,5) are exactly the simultaneous crossings. The count is 1+2999+4999−999=70001+2999+4999-999=7000.

Method 2 Inspect a three-column pattern
Topics usedPeriodicitySlope

Shift the start to the origin. Subtracting its coordinates from those of the end gives (3000,5000)(3000,5000). After three columns the height has increased by exactly five units, so the same pattern repeats 3000/3=10003000/3=1000 times.

In the first three columns the heights at the boundaries are 0,5/3,10/3,50,5/3,10/3,5. The segment passes through the interiors of two cells in the first column, three in the second, and two in the third. Distinct column groups share no cell interiors; hence 1000(2+3+2)=70001000(2+3+2)=7000.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)