Looking for a book or article on the result linked below. The result tells us that the number of lattice points on a line between points $(a,b)$ and $(c,d)$ is given by $\gcd(a-c,b-d)+1$.
https://math.stackexchange.com/questions/628117/how-to-count-lattice-points-on-a-line