Given Point $A(-6,-5)$ and Point $B(24,19)$. Calculate the lattice points (include starting and ending points) in the line segment $AB$. How many lattice points between them ?
I know the formula from this link How to calculate the number of lattice points in the interior and on the boundary of these figures with vertices as lattice points?
But don't know how to calculate since
$24 - (-6)$ Divide $19 - (-5) = 30$ divide $24$ which couldn't get integer number
Any way to calculate such question?