logo

Pell's equation 📂Number Theory

Pell's equation

Buildup

an:=n2a_{n} : = n^2 is referred to as a Square Number.

20190210_175306.png

bm:=m(m+1)2\displaystyle b_{m} : = {{ m ( m + 1 ) } \over {2}} is referred to as a Triangular Number.

20190210_175300.png

Considering if there are numbers that are both square and triangular, a1=b1=1a_{1} =b_{1} = 1 and a6=62=36=892=b8\displaystyle a_{6} = 6 ^2 = 36 = {{ 8 \cdot 9 } \over {2}} = b_{8} immediately come to mind. Now, let’s think about the general case where a number is both square and triangular. n2=m(m+1)2    8n2=4m(m+1)    8n2=(2m+1)21 \begin{align*} & n^2 = {{ m ( m + 1 ) } \over {2}} \\ & \implies 8 n^2 = 4 m ( m + 1 ) \\ & \implies 8 n^2 = ( 2 m + 1 )^2 - 1 \end{align*} If we set x:=2m+1x := 2m + 1 and y:=2ny := 2n, then 2y2=x21 2 y^2 = x^2 - 1 This rephrases the question ‘what is a number that is both square and triangular?’ into finding a natural solution for x22y2=1x^2 - 2 y^2 = 1.

Definition 1

The generalised form of such equations is known as Pell’s Equation, and the following theorem is known.

Theorem

  • [1]: For DND \in \mathbb{N}, which is not a perfect square, x2Dy2=1x^2 - D y^2 = 1 always has a solution.
  • [2]: If (x1,y1)( x_{1} , y_{1} ) is the solution with the smallest value for x1x_{1}, then all solutions (xk,yk)(x_{k} , y_{k}) can be derived as xk+ykD=(x1+y1D)kx_{k} + y_{k} \sqrt{D} = \left( x_{1} + y_{1} \sqrt{D} \right)^{k}, where k,xk,ykNk , x_{k} , y_{k} \in \mathbb{N}.

Explanation

As a direct follow-up from square and triangular numbers, the natural solution that satisfies x22y2=1x^2 - 2 y^2 = 1 is 32222=13^2 - 2 \cdot 2^2 = 1, hence (3,2)(3,2) exists. Since x=3=2m+1x = 3 = 2m + 1 and defined as y=2=2ny = 2 = 2n, it exactly matches the simplest case of n=m=1n= m =1. Now, considering the case where k=2k=2, x2+y22=(3+22)2=17+122 x_{2} + y_{2} \sqrt{2} = \left( 3 + 2 \sqrt{2} \right)^2 = 17 + 12 \sqrt{2} In fact, since it is defined as x=17=2m+1x = 17 = 2m + 1 and y=12=2n y = 12 = 2n, these values become the known m=8m=8 and n=6n=6.

What stands out in Pell’s equation, despite clearly being a part of number theory, is the use of the irrational number 2\sqrt{2} in calculations. This extension is also possible for complex numbers. Additionally, since the form of the equation is similar to that of a hyperbolic equation, one can surmise that there has been some discussion related to this.


  1. Silverman. (2012). A Friendly Introduction to Number Theory (4th Edition): p245. ↩︎