158,963 views
20 votes
20 votes
How many lattice points (points with integer coordinates) are on the line segment whose endpoints are $(3,17)$ and $(48,281)

User Mrudav Shukla
by
2.6k points

1 Answer

10 votes
10 votes

Any line through the points
(a,b) and
(c,d) has


\gcd(c-a,d-b)+1

lattice points. In this case, the count is GCD(45, 264) + 1.

Using Euclid's algorithm, we have

264 = 5•45 + 39

45 = 1•39 + 6

39 = 6•6 + 3

6 = 2•3 + 0

so that GCD(45, 264) = 3. Then there are 3 + 1 = 4 lattice points.

User FatherMathew
by
3.2k points