polyhedron
LattE background

Lattice Points of Lines

Lecture 2

In lecture one, we introduced the concept of counting the number of lattice points that lie inside and on the boundary of a given circle of radius $r$. We also mentioned that, counting the number of lattice points in curvy regions such as hyperbolas, is equivalent to determining whether a given integer $n$ is prime or not. Since, it is difficult to check the primality of a given number $n$, this implies that counting the number of lattice points that lie within and on the boundary of curvy regions, is as difficult as checking the primality of an integer number $n$. As a result, we can safely deduce that counting the number of lattice points inside and on the boundary of curvy regions is a fairly complicated process. Suppose then we restrict ourselves to counting the number of lattice points of less curvy regions such as lines for instance.

Lattice Points of lines

Suppose we have a line


\begin{displaymath}
y = a x + b
\end{displaymath}

Figure 1: a line of the form $y = ax + b$
\scalebox{1}{\includegraphics{line1.eps}}
Again a natural question arises, how many lattice points are on it? To study this question further we offer the following theorem:

theorem 1   Every line is of the following types:
  1. Rational slope no lattice points
  2. Rational slope infinitely many lattice points
  3. Irrational slope no lattice points
  4. Irrational slope exactly one lattice point
  5. Lines parallel to the $x$ or $y$ axis infinitely many lattice points depending on whether the constant k in $x = k$, $y = k$ is integral or not.

Figure: $y = \frac{x}{3} + \frac{1}{2}$ ; a line with rational slope and no lattice points
\scalebox{1}{\includegraphics{line2.eps}}

Figure 3: $y = 2 x$ ; a line with rational slope with infinitely many lattice points
\scalebox{1}{\includegraphics{line3.eps}}

Figure: $y = \pi x + \frac{1}{2}$ ; a line with irrational slope and no lattice points
\scalebox{1}{\includegraphics{line4.eps}}

Figure 5: $y = \sqrt {2} x$ ; a line with irrational slope and with exactly one lattice point
\scalebox{1}{\includegraphics{line5.eps}}

Figure 6: $x = 4$ , $x = \sqrt {2}$ , $y = 2$ , $y = \pi $ ; lines parallel to the $x$ and $y$ axis
\scalebox{.7}{\includegraphics{line6.eps}}
If we look at figure one we will see that the line skips every integral point on the graph. Suppose somebody said that the line should cross through (1,1). Then we can easily disprove such claim by plainly substituting $x$ for 1 and solving for $y$. So, $y = \frac{1}{3} 1 + \frac{1}{2}$ $\Rightarrow$ $y = \frac{5}{6}$. A non-integral solution. In this manner we can show that such line cannot have any lattice points. In fact given any line of the form, $y = \frac{m}{n} x + \frac{r}{s}$, s.t. the line has a rational slope and $g.c.d(r,s) = 1$, where $s$ does not divide $n$. We will get that such a line will not have any lattice points on it. However, if we make the slope rational then we will more thatn likely have a lattice point as figure 3 shows. However, as we have seen from figure 2, having a rational slope does not guarantee that a line have any lattice points, to guarantee at least one lattice point consider the following theorem

theorem 2   If $y = \frac{m}{n}x + x$ has a rational slope and $b = \frac{r}{s}$ s.t. $g.c.d(r,s) = 1$ and $s\vert n$ then $\exists $ at least one lattice point on the line

Now if we look at figure 4 we claim that such graph does not have any lattice points on it. However, the point (1,4) looks like an integral solution. However this cannot be for, $y =
\pi 1+ \frac{1}{2}$ $\Rightarrow$ $y = 3.64154$ an integral solution. Now in figure 5 we claim that (0,0) is the only lattice point on that graph, if we look closely (-1,-1) looks like a lattice point on the graph, but as previously done, $y = \sqrt{2} 4$ $\Rightarrow$ $y = -\sqrt{2}$. We can also say that the point (4,5) is also a point on the graph of figure 5. But the following calculation shows that this cannot be, $y = \sqrt 4$, $\Rightarrow$ $y = 5.6585$ a non-integral solution.

Suppose now we wanted to show that a line contains no lattice points! the following theorem can help with this

theorem 3   If $y = ax + b$ where $a$ is irrational, $b$ is a rational non-integer, then the line has no lattice points

Moreover, given a line $y = ax + b$, where $a$ is irrational and $b$ is any real number, has on either side an infinite strip of lattice points lying close to the respective line.

Figure 7: $y = \sqrt {2} x + 1$ where on either side of the line $\exists $ infinitely many lattice points
\scalebox{1}{\includegraphics{line7.eps}}

If we consider figure 7 you will notice that on either side there exists lattice points trapped inside the infinite strip. For instance, the lattice points (1,2), (2,3) are on the right side of the line and the points (1,3) and (2,4) exist on the left side of the line. In this manner we can find lattice points inside the parallel strip for the entire line.

• Mathematics • The University of California, Davis •
• One Shields Avenue • Davis, CA 95616 •