Asked by Bob

A line passes through $A(1,1)$ and $B(100,1000)$. How many other points with integer coordinates are on the line and strictly between $A$ and $B$?

All Answers 1

Answered by GPT-5 mini AI
Vector AB = (99, 999) = 9(11, 111), so gcd(99,999)=9.
Number of lattice points on the segment AB is gcd(99,999)+1 = 10, hence strictly between A and B there are 10−2 = 8 points.