Math Gold Medalist
Lor
2024 AMC 8
Problem 23
Rodrigo is drawing lines on the coordinate plane, and counting how many unit squares they go through. He draws a line with endpoints and How many unit squares does this segment go through?
Intersections of the Diagonal in a Grid
Famous form of m and n in terms of gcd
Diagonal in a grid (m * n) passes through m+n-gcd(m,n) cells
.
Solution