Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

In 1900, David Hilbert asked for an algorithm to decide whether a given Diophantine equation is solvable or not and put this problem tenth in his famous list of 23.

In 1970, it was proved that such an algorithm cannot exist, i.e., the problem is recursively undecidable. Proof was supplied by Yu. V. Matiyasevich [133], heavily leaning on results arrived at by M. Davis, J. Robinson, and H. Putnam [60]. This was accomplished by proving that any enumerable set \(A \subseteq \mathbb{N} =\{ 0,1,2,\ldots \}\) can be represented in the following form: There exists a polynomial \(p(x,x_{1},\ldots,x_{n})\) with n ≥ 0 such that a ∈ A if and only if \(p(a,x_{1},\ldots,x_{n}) = 0\) is solvable for particular nonnegative integers \(x_{1},\ldots,x_{n}\), i.e.,

$$\displaystyle{a \in A\ \Leftrightarrow \ \exists \ x_{1},\ldots,x_{n} \geq 0:\ p(a,x_{1},\ldots,x_{n}) = 0.}$$

Therefore, the set A equals the set of parameters for which the equation p = 0 is solvable. Employing an idea of H. Putnam [178] this can be reformulated as follows. If \(q(x,x_{1},\ldots,x_{n}) = x(1 - p(x,x_{1},\ldots,x_{n})^{2})\), then A equals the set of positive values of q, where its variables range over the nonnegative integers. Among the recursively enumerable sets there are many for which such representation is surprising. We will name some examples which are of importance in number theory.

  1. (1)

    The primes and their recursively enumerable subsets, most outstanding Fermat-, Mersenne-, and Twin-primes.

  2. (2)

    The set of partial denominators of the continued fraction expansion of numbers as e, π and \(\root{3}\of{2}\). (Whereas for e this is known to equal \(\{1\} \cup \{ 2,4,6,\ldots \}\), there is only computer-based research regarding the other numbers.

In this chapter we will introduce a Diophantine representation concept for sequences of integers that refines the idea of Diophantine set. This concept proves helpful in solving several types of Diophantine equations.

6.1 Diophantine r-Representable Sequences

The sequence (x m ) m ≥ 1 is Diophantine r-representable if there exists a sequence (P n ) n ≥ 1 of polynomials of degree r, \(P_{n} \in \mathbb{Z}[X_{1},\ldots,X_{r}]\), such that for any positive integer n the following equality holds:

$$\displaystyle{ P_{n}(x_{n-r+1},\ldots,x_{n}) = 0. }$$
(6.1.1)

This means that the sequence (x m ) m ≥ 1 has the above property if and only if among the solutions to the Diophantine equation

$$\displaystyle{P_{n}(y_{1},y_{2},\ldots,y_{r}) = 0}$$

there are some for which \(y_{1}^{(n)} = x_{n-r+1}\), \(y_{2}^{(n)} = x_{n-r+2},\ldots\), y r (n) = x n , for all positive integers n.

The main result of this section is that any sequence defined by a linear recurrence of order r is Diophantine r-representable. Our approach follows the method given in [27] and [47] (see also [28] in the case r = 2).

Consider the sequence (x n ) n ≥ 1 defined recursively by

$$\displaystyle{ \left \{\begin{array}{l} x_{i} =\alpha _{i},\ i = 1,2,\ldots,r \\ x_{n} =\sum _{ k=1}^{r}a_{ k}x_{n-r-1+k},\ n \geq r + 1 \end{array} \right. }$$
(6.1.2)

where \(\alpha _{1},\alpha _{2},\ldots,\alpha _{r}\) and \(a_{1},a_{2},\ldots,a_{r}\) are integers with a 1 ≠ 0.

For n ≥ r, let

$$\displaystyle{ D_{n} =\det \left [\begin{array}{ccccc} x_{n-r+1} & x_{n-r+2} & \ldots & x_{n-1} & x_{n} \\ x_{n-r+2} & x_{n-r+3} & \ldots & x_{n} & x_{n+1}\\ \ldots & \ldots & \ldots & \ldots & \ldots \\ x_{n} & x_{n+1} & \ldots & x_{n+r-2} & x_{n+r-1} \end{array} \right ] }$$
(6.1.3)

Lemma 6.1.1.

For all integers n ≥ r, the following equality holds:

$$\displaystyle{ D_{n} = (-1)^{(r-1)(n-r)}a_{ 1}^{n-r}D_{ r}. }$$
(6.1.4)

Proof.

Following the method of [104, 135] and [202] we introduce the matrix

$$\displaystyle{A_{n} = \left [\begin{array}{ccccc} x_{n-r+1} & x_{n-r+2} & \ldots & x_{n-1} & x_{n} \\ x_{n-r+2} & x_{n-r+3} & \ldots & x_{n} & x_{n+1}\\ \ldots & \ldots & \ldots & \ldots & \ldots \\ x_{n-1} & x_{n} &\ldots &x_{n+r-3} & x_{n+r-2} \\ x_{n} & x_{n+1} & \ldots & x_{n+r-2} & x_{n+r-1} \end{array} \right ].}$$

It is easy to see that

$$\displaystyle{A_{n+1} = \left [\begin{array}{cccccccc} 0 & 1 & 0 & 0 &\ldots & 0 & 0 & 0\\ 0 & 0 & 1 & 0 &\ldots & 0 & 0 & 0\\ \ldots & \ldots & \ldots & \ldots &\ldots & \ldots & \ldots & \ldots \\ 0 & 0 & 0 & 0 &\ldots & 0 & 1 & 0\\ 0 & 0 & 0 & 0 &\ldots & 0 & 0 & 1 \\ a_{1} & a_{2} & a_{3} & a_{4} & \ldots & a_{r-2} & a_{r-1} & a_{r} \end{array} \right ]\cdot A_{n}}$$

and so that

$$\displaystyle{ A_{n} = \left [\begin{array}{cccccccc} 0 & 1 & 0 & 0 &\ldots & 0 & 0 & 0\\ 0 & 0 & 1 & 0 &\ldots & 0 & 0 & 0\\ \ldots & \ldots & \ldots & \ldots &\ldots & \ldots & \ldots & \ldots \\ 0 & 0 & 0 & 0 &\ldots & 0 & 1 & 0\\ 0 & 0 & 0 & 0 &\ldots & 0 & 0 & 1 \\ a_{1} & a_{2} & a_{3} & a_{4} & \ldots & a_{r-2} & a_{r-1} & a_{r} \end{array} \right ]^{n-r}\cdot A_{ r}. }$$
(6.1.5)

Passing to determinants in (6.1.5), we obtain \(((-1)^{r-1}a_{1})^{n-r}D_{r} = D_{n}\) for n ≥ r, that is the relation (6.1.4). □ 

Theorem 6.1.2.

Any sequence defined by a linear recurrence of order r is Diophantine r-representable.

Proof.

Consider the sequence (x n ) n ≥ 1 defined by (6.1.2) and let \(P_{n} \in \mathbb{Z}[X_{1},\ldots,X_{r}]\) be the polynomial given by

$$\displaystyle{ P_{n}(y_{1},\ldots,y_{r}) = F_{r}(y_{1},\ldots,y_{r}) - (-1)^{(r-1)(n-r)}a_{ 1}^{n-r}F_{ r}(\alpha _{1},\ldots,\alpha _{r}) }$$
(6.1.6)

where \(F_{r} \in \mathbb{Z}[X_{1},\ldots,X_{r}]\) is obtained from the determinant (6.1.3) and the recursive relation (6.1.2).

From the relation (6.1.4) it follows that for all n ≥ r the following equalities hold

$$\displaystyle\begin{array}{rcl} & P_{n}(x_{n-r+1},\ldots,x_{n})\! =\! F_{r}(x_{n-r+1},\ldots,x_{n}) - (-1)^{(r-1)(n-r)}a_{1}^{n-r}F_{r}(\alpha _{1},\ldots,\alpha _{r})& {}\\ & = D_{n} - (-1)^{(r-1)(n-r)}a_{1}^{n-r}D_{r} = 0, & {}\\ \end{array}$$

i.e., the sequence (x n ) n ≥ 1 is Diophantine r-representable. □ 

Remarks.

  1. 1)

    When r = 2, the polynomial F r in (6.1.6) is given by

    $$\displaystyle{ F_{2}(x,y) = x^{2} - a_{ 2}xy - a_{1}y^{2} }$$
    (6.1.7)

    and it follows that, for the sequence (x n ) n ≥ 1 defined by

    $$\displaystyle{ \left \{\begin{array}{l} x_{1} =\alpha _{1},\ x_{2} =\alpha _{2} \\ x_{n} = a_{1}x_{n-2} + a_{2}x_{n-1},\ n \geq 3\end{array} \right. }$$
    (6.1.8)

    the relation \(F_{2}(x_{n-1},x_{n}) = (-1)^{n}a_{1}^{n-2}F_{2}(\alpha _{1},\alpha _{2})\) holds, i.e.,

    $$\displaystyle{ x_{n}^{2} - a_{ 2}x_{n-1}x_{n} - a_{1}x_{n-1}^{2} = (-1)^{n}a_{ 1}^{n-2}(\alpha _{ 2}^{2} - a_{ 2}\alpha _{1}\alpha _{2} - a_{1}\alpha _{1}^{2}). }$$
    (6.1.9)

    The relation (6.1.9) is the first relation of [35] and [36].

  2. 2)

    In the particular case r = 3, after elementary calculation, we obtain

    $$\displaystyle\begin{array}{rcl} F_{3}(x,y,z) = -x^{3}\!\!\!\!& -\!\!\!& (a_{ 1} + a_{2}a_{3})y^{3} - a_{ 1}^{2}z^{3} + 2a_{ 3}x^{2}y + a_{ 2}x^{2}z {}\\ \!\!\!\!& -\!\!\!& (a_{2}^{2} + a_{ 1}a_{3})y^{2}z - (a_{ 3}^{2} - a_{ 2})xy^{2} {}\\ \!\!\!\!& -\!\!\!& a_{1}a_{3}xz^{2} - 2a_{ 1}a_{2}yz^{2} + (3a_{ 1} - a_{2}a_{3})xyz, {}\\ \end{array}$$

    hence we get that, for the linear recurrence

    $$\displaystyle{ \left \{\begin{array}{l} x_{1} =\alpha _{1},\ x_{2} =\alpha _{2},\ x_{3} =\alpha _{3} \\ x_{n} = a_{1}x_{n-2} + a_{2}x_{n-2} + a_{3}x_{n-1},\ n \geq 4\end{array} \right. }$$
    (6.1.10)

    the relation

    $$\displaystyle{ F_{3}(x_{n-2},x_{n-1},x_{n}) = a_{1}^{n-3}F_{ 3}(\alpha _{1},\alpha _{2},\alpha _{3}) }$$
    (6.1.11)

    is true.

  3. 3)

    If in the proof of Theorem 6.1.2, the equation \(P_{n}(x_{n-r+1},\ldots,x_{n}) = 0\) can be solved with respect to x n , then x n can be written as a function in r − 1 variables \(x_{n-r+1},\ldots,x_{n-1}\).

  4. 4)

    Note that the polynomial \(F_{r} \in \mathbb{Z}[X_{1},\ldots,X_{r}]\) can be viewed as an “invariant” to the sequence (x n ) n ≥ 1 defined by (6.1.2).

  5. 5)

    For additional informations about the special case r = 2 we refer to [92].

6.2 A Property of Some Special Sequences

If \(a_{1} = a_{2} = 1\) and \(\alpha _{1} =\alpha _{2} = 1\), then (6.1.8) defines the Fibonacci sequence (F n ) n ≥ 1 (see [105, 114, 187]) and [217] for many interesting properties). From (6.1.9) we obtain

$$\displaystyle{ F_{n}^{2} - F_{ n}F_{n-1} - F_{n-1}^{2} = (-1)^{n-1}. }$$
(6.2.1)

If \(a_{1} = a_{2} = 1\) and α 1 = 1, α 2 = 3, then (6.1.8) defines the Lucas sequence (L n ) n ≥ 1 (see [105]) and from (6.1.9) it follows that

$$\displaystyle{ L_{n}^{2} - L_{ n}L_{n-1} - L_{n-1}^{2} = 5(-1)^{n}. }$$
(6.2.2)

If a 1 = 1, a 2 = 2 and α 1 = 1, α 2 = 3, then (6.1.8) gives the Pell sequence (P n ) n ≥ 1 (see [106]) and the relation (6.1.9) becomes

$$\displaystyle{ P_{n}^{2} - 2P_{ n}P_{n-1} - P_{n-1}^{2} = (-1)^{n-1}. }$$
(6.2.3)

From the relations (6.2.1), (6.2.2), (6.2.3) we deduce

$$\displaystyle\begin{array}{rcl} F_{n} = \frac{1} {2}\left (F_{n-1} + \sqrt{5F_{n-1 }^{2 } + 4(-1)^{n-1}}\right )& &{}\end{array}$$
(6.2.4)
$$\displaystyle\begin{array}{rcl} L_{n} = \frac{1} {2}\left (L_{n-1} + \sqrt{5L_{n-1 }^{2 } + 20(-1)^{n}}\right )& &{}\end{array}$$
(6.2.5)
$$\displaystyle\begin{array}{rcl} P_{n} = P_{n-1} + \sqrt{2P_{n-1 }^{2 } + (-1)^{n-1}}.& &{}\end{array}$$
(6.2.6)

These identities give the possibility for writing computer programs that facilitate the computation of the terms of each of the three sequences (F n ) n ≥ 1, (L n ) n ≥ 1, (P n ) n ≥ 1.

In [183] it is given a method for obtaining the relation (6.2.4) by using hyperbolic functions. Similar results are also presented in [90].

Proposition 6.2.1.

If the sequence (x n ) n≥1 is given by (6.1.8) , then for all integers n ≥ 3, the integer

$$\displaystyle{(a_{2}^{2} + 4a_{ 1})x_{n-1}^{2} + 4(-1)^{n-1}a_{ 1}^{n-2}(a_{ 1}\alpha _{1}^{2} + a_{ 2}\alpha _{1}\alpha _{2} -\alpha _{2}^{2})}$$

is a perfect square.

Proof.

From (6.1.9) we obtain

$$\displaystyle{(a_{2}^{2} + 4a_{ 1})x_{n-1}^{2} + 4(-1)^{n-1}a_{ 1}^{n-2}(a_{ 1}\alpha _{1}^{2} + a_{ 2}\alpha _{1}\alpha _{2} -\alpha _{2}^{2}) = (2x_{ n} - a_{2}x_{n-1})^{2}}$$

which finishes the proof. □ 

Proposition 6.2.2.

Let α 1 2 and k be nonzero integers. The general Pell’s equations

$$\displaystyle{x^{2} - (k^{2} + 4)y^{2} = 4(\alpha _{ 1}^{2} + k\alpha _{ 1}\alpha _{2} -\alpha _{2}^{2})}$$

and

$$\displaystyle{(k^{2} + 4)u^{2} - v^{2} = 4(\alpha _{ 1}^{2} + k\alpha _{ 1}\alpha _{2} -\alpha _{2}^{2})}$$

are solvable.

Proof.

In (6.1.8) consider a 1 = 1 and a 2 = k. From Proposition 6.2.1 it follows that \((x,y) = (2x_{n} - kx_{n-1},x_{n-1})\) is a solution to the first equation whenever n is odd. If n is even, then \((u,v) = (x_{n-1},2x_{n} - kx_{n-1})\) is a solution to the second equation. □ 

Remark.

Note that the first equation in Proposition 6.2.2 has solution (2α 1 + k α 2, α 2). From Theorem 4.5.1 it follows that it has infinitely many integral solutions.

Similarly, the second equation in Proposition 6.2.2 has solution \((k\alpha _{1} + (k^{2} + 2)\alpha _{2},\alpha _{1} + k\alpha _{2})\), and by applying Theorem 4.5.1 we deduce that it has infinitely many integral solutions.

6.3 The Equations x 2 + axy + y 2 = ±1

The result in Theorem 5.6.1 shows that if | a | > 2 the pairs \((-v_{n},v_{n+1})\), \((v_{n},-v_{n+1})\), \((-v_{n+1},v_{n})\), \((v_{n+1},-v_{n})\) of consecutive terms in the sequence given by

$$\displaystyle{v_{n} = \frac{1} {\sqrt{a^{2 } - 4}}\left [\left (\frac{a + \sqrt{a^{2 } - 4}} {2} \right )^{n} -\left (\frac{a -\sqrt{a^{2 } - 4}} {2} \right )^{n}\right ]}$$

can be characterized as solutions to the equation \(x^{2} + ax + y^{2} = 1\).

On the other hand, the sequence (v n ) n ≥ 0 satisfies the linear recurrence of order 2

$$\displaystyle{v_{n+1} = av_{n} - v_{n-1},\ n \geq 1,\text{ where }v_{0} = 0\text{ and }v_{1} = 1.}$$

Therefore the solutions to the discussed equation consists of all pairs of consecutive terms in a sequence defined by a second order recursive linear relation.

In what follows, we will study the equation

$$\displaystyle{ x^{2} + axy + y^{2} = -1, }$$
(6.3.1)

which is also a special case of (4.8.1).

Theorem 6.3.1.

The equation (6.3.1) is solvable in integers if and only if a = ±3.

If \(a = -3\) , then the solutions are

$$\displaystyle\begin{array}{rcl} & (-F_{2n-1},-F_{2n+1}),\ (-F_{2n+1},-F_{2n-1}),& {}\\ & (F_{2n-1},F_{2n+1}),\ (F_{2n+1},F_{2n-1}),\ n \geq 1.& {}\\ \end{array}$$

If a = 3, then the solutions are

$$\displaystyle\begin{array}{rcl} & (-F_{2n-1},F_{2n+1}),\ (-F_{2n+1},F_{2n-1}), & {}\\ & (F_{2n-1},-F_{2n+1}),\ (F_{2n+1},-F_{2n-1}),\ n \geq 1,& {}\\ \end{array}$$

where (F m ) m≥1 is the Fibonacci sequence.

Proof.

First consider a < 0. If there is a solution (x, y), then xy > 0. Therefore, we may assume that x > 0, y > 0 and we may consider that x is minimal.

If a ≠ − 3, then xy, for otherwise \((a + 2)x^{2} = -1\), which is impossible, because \(a + 2\neq - 1\). We have

$$\displaystyle\begin{array}{rcl} & 0 = x^{2} + axy + y^{2} + 1 = (x + ay)^{2} - axy - a^{2}y^{2} + y^{2} + 1& {}\\ & = (-x - ay)^{2} + a(-x - ay)y + y^{2} + 1, & {}\\ \end{array}$$

hence \((-x - ay,y)\) is also a solution. It follows that \(-x - ay> 0\).

If we prove that \(-x - ay <x\), then we contradict the minimality of x. Indeed, from the symmetry of the equation, we may assume that x > y. Then \(x^{2}> y^{2} + 1 = x(-x - ay)\), so \(x> -x - ay\). It follows that in this case the equation (6.3.1) is not solvable.

Consider now a > 0 and let (x, y) be a solution. Then xy < 0 and we may assume for example that x > 0 and y < 0. Setting \(z = -y\), we obtain the equivalent equation \(x^{2} + (-a)xz + z^{2} = -1\), with x > 0, z > 0, which we examined above. It follows that the equation (6.3.1) is not solvable if \(-a\neq - 3\), i.e., a ≠ 3.

It remains to solve the equation when a = ±3. First, consider the case \(a = -3\) and write the equation \(x^{2} - 3xy + y^{2} = -1\) in the following equivalent form \((2x - 3y)^{2} - 5y^{2} = -4\). This is a special Pell’s equation:

$$\displaystyle{ u^{2} - 5v^{2} = -4. }$$
(6.3.2)

Its minimal solution is (1, 1). By the results in Section 4.3.2, it follows that the general solution (u m , v m ) to (6.3.2) is given by

$$\displaystyle{u_{m} + v_{m}\sqrt{5} = 2\left (\frac{1 + \sqrt{5}} {2} \right )^{m},\quad m = 1,3,5,\ldots }$$

Since

$$\displaystyle{u_{m} - v_{m}\sqrt{5} = 2\left (\frac{1 -\sqrt{5}} {2} \right )^{m},\quad m = 1,3,5,\ldots }$$

we obtain

$$\displaystyle{u_{m} = \left (\frac{1 + \sqrt{5}} {2} \right )^{m} + \left (\frac{1 -\sqrt{5}} {2} \right )^{m}}$$

and

$$\displaystyle{v_{m} = \frac{1} {\sqrt{5}}\left [\left (\frac{1 + \sqrt{5}} {2} \right )^{m} -\left (\frac{1 -\sqrt{5}} {2} \right )^{m}\right ] = F_{ m}}$$

where \(m = 1,3,5,\ldots\)

It follows that \(2x - 3F_{m} = u_{m}\), hence

$$\displaystyle\begin{array}{rcl} x& =& \left ( \frac{3} {2\sqrt{5}} + \frac{1} {2}\right )\left (\frac{1 + \sqrt{5}} {2} \right )^{m} -\left ( \frac{3} {2\sqrt{5}} -\frac{1} {2}\right )\left (\frac{1 -\sqrt{5}} {2} \right )^{m} {}\\ & =& \frac{(1 + \sqrt{5})^{2}} {4\sqrt{5}} \left (\frac{1 + \sqrt{5}} {2} \right )^{m} -\frac{(1 -\sqrt{5})^{2}} {2\sqrt{5}} \left (\frac{1 -\sqrt{5}} {2} \right )^{m} {}\\ & =& \frac{1} {\sqrt{5}}\left [\left (\frac{1 + \sqrt{5}} {2} \right )^{m+2} -\left (\frac{1 -\sqrt{5}} {2} \right )^{m+2}\right ] = F_{ m+2}. {}\\ \end{array}$$

We obtain the solutions \((F_{2n+1},F_{2n-1})\), n ≥ 1, and by the symmetries (x, y) → (y, x) and \((x,y) \rightarrow (-x,-y)\) we find the others.

If a = 3, the substitution \(y = -z\) transforms the equation into

$$\displaystyle{x^{2} - 3xz + z^{2} = -1.}$$

From the above considerations we obtain the solutions

$$\displaystyle{(x,z) = (F_{2n+1},F_{2n-1})}$$

and by using the same symmetries we get the four families of solutions given in the Theorem. □ 

Remarks.

  1. 1)

    The conclusion in Theorem 6.3.1 can be also obtained by considering the more general equation (see [200] or [25]):

    $$\displaystyle{x^{2} + y^{2} + 1 = xyz.}$$

    The integral solutions (x, y, z) to this equation are given by

    $$\displaystyle\begin{array}{rcl} & (-F_{2n-1},-F_{2n+1},3),\ (-F_{2n+1},-F_{2n-1},3),\ (F_{2n-1},F_{2n+1},3), & {}\\ & (F_{2n+1},F_{2n-11},3),\ (-F_{2n-1},F_{2n+1},-3),\ (-F_{2n+1},F_{2n-1},-3),& {}\\ & (F_{2n-1},-F_{2n+1},-3),\ (F_{2n+1},-F_{2n-1},-3),\ n \geq 1. & {}\\ \end{array}$$
  2. 2)

    In [150] it is considered the more general equation

    $$\displaystyle{f_{1}(x,y) = zf_{2}(x,y)}$$

    where \(f_{1}(x,y) = ax^{2} + bxy + cy^{2} + dx + ey + f\), \(f_{2}(x,y) = pxy + qx + ry + s\) are quadratic forms with integer coefficients and ac ≠ 0, \(a\vert \gcd (b,d,p,q)\), \(c\vert \gcd (b,e,p,r)\).

  3. 3)

    In the paper [188] is considered the equation

    $$\displaystyle{ x^{4} - 6x^{2}y^{2} + 5y^{4} = 16F_{ n-1}F_{n+1}, }$$
    (6.3.3)

    when one of the Fibonacci numbers F n−1, F n+1 is prime and another is prime or it is a product of two different prime numbers. There are such Fibonacci numbers, for example F 5 = 5 and F 7 = 13; F 11 = 89 and F 13 = 233; F 17 = 1597 and \(F_{19} = 165580141 = F_{29} = 514229\) and \(F_{31} = 1346269 = 557 \cdot 2147\); \(F_{41} = 165580141 = 2789 \cdot 59369\) and F 43 = 433494437.

    Using the equivalent form \((x^{2} - 5y^{2})(x^{2} - y^{2}) = 16F_{n-1}F_{n+1}\) to the equation, and the result in Theorem 4.1.1, in the paper [188] is shown that all integral solutions (x, y, n) to (6.3.3) are (x, y, n) = (±L 6l , ±F 6l , 6l), l ≥ 1, when 6l − 1 are prime numbers, F 6l+1 is a product of two different primes, and L 6l is the Lucas number.

6.4 Diophantine Representations of the Sequences Fibonacci, Lucas, and Pell

In this section we will consider some special cases of the Diophantine equation

$$\displaystyle{ x^{2} + axy - y^{2} = b }$$
(6.4.1)

where a and b are integers and we will show that all nontrivial positive solutions to (6.4.1) are representable by pairs of consecutive terms in the sequences (F n ) n ≥ 1, (L n ) n ≥ 1, (P n ) n ≥ 1. These results are given in [47] but the method used there is different and more complicated. Note that this equation is a special case of (4.8.1).

Theorem 6.4.1.

  1. (i)

    The nontrivial positive integer solutions to the equation

    $$\displaystyle{ x^{2} + xy - y^{2} = -1 }$$
    (6.4.2)

    are given by (F 2n ,F 2n+1 ), n ≥ 1.

  2. (ii)

    The nontrivial positive integer solutions to the equation

    $$\displaystyle{ x^{2} + xy - y^{2} = 1 }$$
    (6.4.3)

    are given by (F 2n−1 ,F 2n ), n ≥ 1.

Proof.

  1. (i)

    The equation is equivalent to

    $$\displaystyle{(2x + y)^{2} - 5y^{2} = -4.}$$

    This is a special Pell’s equation of the form \(u^{2} - 5v^{2} = -4\) and has solution

    $$\displaystyle{\frac{1} {2}(u_{m} + v_{m}\sqrt{5}) = \left (\frac{1 + \sqrt{5}} {2} \right )^{m},\quad m = 3,5,\ldots }$$

    (see Theorem 4.4.1). It follows that

    $$\displaystyle{u_{m} = \left (\frac{1 + \sqrt{5}} {2} \right )^{m} + \left (\frac{1 -\sqrt{5}} {2} \right )^{m}}$$

    and

    $$\displaystyle{v_{m} = \frac{1} {\sqrt{5}}\left [\left (\frac{1 + \sqrt{5}} {2} \right )^{m} -\left (\frac{1 -\sqrt{5}} {2} \right )^{m}\right ],\quad m = 3,5,\ldots }$$

    Hence y m  = v m and

    $$\displaystyle\begin{array}{rcl} x_{m}& =& \frac{1} {2}(u_{m} - v_{m}) = \frac{1} {2}\left [\left (1 - \frac{1} {\sqrt{5}}\right )\!\!\left (\frac{1 + \sqrt{5}} {2} \right )^{m} + \left (1 + \frac{1} {\sqrt{5}}\right )\!\!\left (\frac{1 -\sqrt{5}} {2} \right )^{m}\right ] {}\\ & =& \frac{1} {\sqrt{5}}\left [\left (\frac{1 + \sqrt{5}} {2} \right )^{m-1} -\left (\frac{1 -\sqrt{5}} {2} \right )^{m-1}\right ],\ m = 3,5,\ldots {}\\ \end{array}$$

    Thus \((x_{n},y_{n}) = (F_{2n},F_{2n+1})\), n ≥ 1.

  2. (ii)

    Similarly, we obtain the equivalent equation

    $$\displaystyle{(2x + y)^{2} - 5y^{2} = 4}$$

    which is a special Pell’s equation of the form \(u^{2} - 5v^{2} = 4\) and has solution

    $$\displaystyle\begin{array}{rcl} & u_{n} = \left (\frac{3+\sqrt{5}} {2} \right )^{n} + \left (\frac{3-\sqrt{5}} {2} \right )^{n}, & {}\\ & v_{n} = \frac{1} {\sqrt{5}}\left [\left (\frac{3+\sqrt{5}} {2} \right )^{n} -\left (\frac{3-\sqrt{5}} {2} \right )^{n}\right ],& {}\\ \end{array}$$

    where n ≥ 1 (see (4.3.2)).

    It follows that

    $$\displaystyle{y_{n} = v_{n} = \frac{1} {\sqrt{5}}\left [\left (\frac{1 + \sqrt{5}} {2} \right )^{2n} -\left (\frac{1 -\sqrt{5}} {2} \right )^{2n}\right ] = F_{ 2n}}$$

    and

    $$\displaystyle\begin{array}{rcl} & \hspace{-18.0pt}x_{n } = \frac{1} {2}(u_{n} - v_{n}) = \frac{1} {2}\left [\left (1 - \frac{1} {\sqrt{5}}\right )\left (\frac{1+\sqrt{5}} {2} \right )^{2n} + \left (1 + \frac{1} {\sqrt{5}}\right )\left (\frac{1-\sqrt{5}} {2} \right )^{2n}\right ]& {}\\ & \hspace{-18.0pt}= \frac{1} {\sqrt{5}}\left [\left (\frac{1+\sqrt{5}} {2} \right )^{2n-1} -\left (\frac{1-\sqrt{5}} {2} \right )^{2n-1}\right ] = F_{ 2n-1}. & {}\\ \end{array}$$

     □ 

Theorem 6.4.2.

  1. (i)

    The nontrivial positive integer solutions to the equation

    $$\displaystyle{ x^{2} + xy - y^{2} = -5 }$$
    (6.4.4)

    are given by (L 2n−1 ,L 2n ), n ≥ 1.

  2. (ii)

    The nontrivial positive integer solutions to the equation

    $$\displaystyle{ x^{2} + xy - y^{2} = 5 }$$
    (6.4.5)

    are given by (L 2n ,L 2n+1 ), n ≥ 1.

Proof.

Recall that the general term of the Lucas sequence is given by

$$\displaystyle{ L_{m} = \left (\frac{1 + \sqrt{5}} {2} \right )^{m} + \left (\frac{1 -\sqrt{5}} {2} \right )^{m},\quad m \geq 1. }$$
(6.4.6)
  1. (i)

    Write the equation in the equivalent form

    $$\displaystyle{(2x + y)^{2} - 5y^{2} = -20}$$

    and let \(2x + y = 5u\), y = v. We obtain the special Pell’s equation \(v^{2} - 5u^{2} = 4\), whose solutions are

    $$\displaystyle\begin{array}{rcl} & v_{n} = \left (\frac{3+\sqrt{5}} {2} \right )^{n} + \left (\frac{3-\sqrt{5}} {2} \right )^{n}, & {}\\ & u_{n} = \frac{1} {\sqrt{5}}\left [\left (\frac{3+\sqrt{5}} {2} \right )^{n} -\left (\frac{3-\sqrt{5}} {2} \right )^{n}\right ],\quad n \geq 1.& {}\\ \end{array}$$

    It follows that

    $$\displaystyle{y_{n} = v_{n} = \left (\frac{1 + \sqrt{5}} {2} \right )^{2n} + \left (\frac{1 -\sqrt{5}} {2} \right )^{2n} = L_{ 2n}}$$

    and

    $$\displaystyle\begin{array}{rcl} x_{n} = \frac{1} {2}(5u_{n} - v_{n})& =& \left [(\sqrt{5} - 1)\left (\frac{1 + \sqrt{5}} {2} \right )^{2n} - (\sqrt{5} + 1)\left (\frac{1 -\sqrt{5}} {2} \right )^{2n}\right ] {}\\ & =& \left (\frac{1 + \sqrt{5}} {2} \right )^{2n-1} + \left (\frac{1 -\sqrt{5}} {2} \right )^{2n-1} = L_{ 2n-1}. {}\\ \end{array}$$
  2. (ii)

    Similarly, the equivalent equation \((2x + y)^{2} - 5y^{2} = 20\) reduces to \(v^{2} - 5u^{2} = -4\), where \(2x + y = 5u\) and y = v. We have

    $$\displaystyle{\frac{1} {2}(v_{m} + u_{m}\sqrt{5}) = \left (\frac{1 + \sqrt{5}} {2} \right )^{m},\quad m = 1,3,5,\ldots }$$

    (see Theorem 4.4.1), hence

    $$\displaystyle{y_{m} = v_{m} = \left (\frac{1 + \sqrt{5}} {2} \right )^{m} + \left (\frac{1 -\sqrt{5}} {2} \right )^{m} = L_{ m},\quad m = 1,3,5,\ldots }$$

    and

    $$\displaystyle\begin{array}{rcl} & x_{m} = \frac{1} {2}(5u_{m} - v_{m}) = \frac{1} {2}\left [(\sqrt{5} - 1)\left (\frac{1+\sqrt{5}} {2} \right )^{m} - (\sqrt{5} + 1)\left (\frac{1-\sqrt{5}} {2} \right )^{m}\right ]& {}\\ & = \left (\frac{1+\sqrt{5}} {2} \right )^{m-1} + \left (\frac{1-\sqrt{5}} {2} \right )^{m-1} = L_{ m-1},\quad m = 1,3,5,\ldots & {}\\ \end{array}$$

     □ 

Theorem 6.4.3.

  1. (i)

    The nontrivial positive integer solutions to the equation

    $$\displaystyle{ x^{2} + 2xy - y^{2} = -1 }$$
    (6.4.7)

    are given by (P 2n ,P 2n+1 ), n ≥ 0.

  2. (ii)

    The nontrivial positive integer solutions to the equation

    $$\displaystyle{x^{2} + 2xy - y^{2} = 1}$$

    are given by (P 2n−1 ,P 2n ), n ≥ 1.

Proof.

The general term of the Pell’s sequence is given by

$$\displaystyle{ P_{m} = \frac{1} {2\sqrt{2}}[(1 + \sqrt{2})^{m} - (1 -\sqrt{2})^{m}],\quad m \geq 1. }$$
(6.4.8)
  1. (i)

    Write the equation in the equivalent form \((x + y)^{2} - 2y^{2} = -1\). This is a negative Pell’s equation of the form \(u^{2} - 2v^{2} = -1\), whose solutions are given by

    $$\displaystyle{u_{n} = \frac{1} {2}[(1 + \sqrt{2})^{2n+1} + (1 -\sqrt{2})^{2n+1}]}$$

    and

    $$\displaystyle{v_{n} = \frac{1} {2\sqrt{2}}[(1 + \sqrt{2})^{2n+1} - (1 -\sqrt{2})^{2n+1}],\quad n \geq 0.}$$

    It follows that

    $$\displaystyle{y_{n} = v_{n} = P_{2n+1}}$$

    and

    $$\displaystyle\begin{array}{rcl} x_{n} - u_{n} - v_{n}& =& \frac{1} {2}\left [\left (1 - \frac{1} {\sqrt{2}}\right )(1 + \sqrt{2})^{2n+1} + \left (1 + \frac{1} {\sqrt{2}}\right )(1 -\sqrt{2})^{2n+1}\right ] {}\\ & =& \frac{1} {2\sqrt{2}}[(1 + \sqrt{2})^{2n} - (1 -\sqrt{2})^{2n}] = P_{ 2n}. {}\\ \end{array}$$
  2. (ii)

    We obtain the Pell’s equation \((x + y)^{2} - 2y^{2} = 1\), whose solutions are

    $$\displaystyle\begin{array}{rcl} & x_{n} + y_{n} = \frac{1} {2}[(1 + \sqrt{2})^{2n} + (1 -\sqrt{2})^{2n}], & {}\\ & y_{n} = \frac{1} {2\sqrt{2}}[(1 + \sqrt{2})^{2n} - (1 -\sqrt{2})^{2n}],\quad n \geq 1.& {}\\ \end{array}$$

    It follows that y n  = P 2n and

    $$\displaystyle\begin{array}{rcl} & x_{n} = \frac{1} {2}\left [\left (1 - \frac{1} {\sqrt{2}}\right )(1 + \sqrt{2})^{2n} + \left (1 + \frac{1} {\sqrt{2}}\right )(1 -\sqrt{2})^{2n}\right ]& {}\\ & = \frac{1} {2\sqrt{2}}[(1 + \sqrt{2})^{2n-1} - (1 -\sqrt{2})^{2n-1}] = P_{2n-1}. & {}\\ \end{array}$$

     □ 

The results in Theorems 6.4.16.4.3 can be summarized in the following Theorem proven by the infinite descent method in [47].

Theorem 6.4.4.

Let a be a positive integer and let (α n ) n≥1 be the sequence defined recursively by

$$\displaystyle{ \left \{\begin{array}{l} \alpha _{1} = 1,\ \alpha _{2} = a \\ \alpha _{n+1} = a\alpha _{n} +\alpha _{n-1},\ n \geq 2. \end{array} \right. }$$
(6.4.9)

Then all positive integer solutions to the equation

$$\displaystyle{ \vert x^{2} + axy - y^{2}\vert = 1 }$$
(6.4.10)

are given by (α n n+1 ), n ≥ 1.

Proof.

The general term of the sequence (α n ) n ≥ 1 in (6.4.9) is given by

$$\displaystyle{ \alpha _{n} = \frac{1} {\sqrt{a^{2 } + 4}}\left [\left (\frac{a + \sqrt{a^{2 } + 4}} {2} \right )^{n} -\left (\frac{a -\sqrt{a^{2 } + 4}} {2} \right )^{n}\right ],\quad n \geq 1. }$$
(6.4.11)

The equation \(x^{2} + axy - y^{2} = -1\) is equivalent to \((2x + ay)^{2} - (a^{2} + 4)y^{2} = -4\), which is a special Pell’s equation of the form \(u^{2} - (a^{2} + 4)v^{2} = -4\). From Theorem 4.4.1 it follows that

$$\displaystyle{\frac{1} {2}(u_{m} + v_{m}\sqrt{a^{2 } + 4}) = \left (\frac{a + \sqrt{a^{2 } + 4}} {2} \right )^{m},\quad m = 1,3,5,\ldots }$$

Hence

$$\displaystyle{u_{m} = \left (\frac{a + \sqrt{a^{2 } + 4}} {2} \right )^{m} + \left (\frac{a -\sqrt{a^{2 } + 4}} {2} \right )^{m}}$$

and

$$\displaystyle{v_{m} = \frac{1} {\sqrt{a^{2 } + 4}}\left [\left (\frac{a + \sqrt{a^{2 } + 4}} {2} \right )^{m} -\left (\frac{a -\sqrt{a^{2 } + 4}} {2} \right )^{m}\right ].}$$

Therefore \(y_{m} = v_{m} =\alpha _{m}\), \(m = 1,3,5,\ldots\), and

$$\displaystyle\begin{array}{rcl} & x_{m} = \frac{1} {2}(u_{m} - av_{m}) & {}\\ & = \frac{1} {2}\!\left [\!\left (1 - \frac{a} {\sqrt{a^{2 } +4}}\right )\!\!\left (\frac{a+\sqrt{a^{2 } +4}} {2} \right )^{m}\! +\! \left (1 + \frac{a} {\sqrt{a^{2 } +4}}\right )\!\!\left (\frac{a-\sqrt{a^{2 } +4}} {2} \right )^{m}\right ]& {}\\ & = \frac{1} {\sqrt{a^{2 } +4}}\left [\left (\frac{a+\sqrt{a^{2 } +4}} {2} \right )^{m-1} -\left (\frac{a-\sqrt{a^{2 } +4}} {2} \right )^{m-1}\right ] =\alpha _{ m-1}. & {}\\ \end{array}$$

The equation \(x^{2} + axy - y^{2} = 1\) is equivalent to \((2x + ay)^{2} - (a^{2} + 4)y^{2} = 4\). From Theorem 4.4.1 it follows that the general solution to the equation \(u^{2} - (a^{2} + 4)v^{2} = 4\) is given by

$$\displaystyle{\frac{1} {2}(u_{n} + v_{n}\sqrt{a^{2 } + 4}) = \left (\frac{a^{2} + 2 + a\sqrt{a^{2 } + 4}} {2} \right )^{n} = \left (\frac{a + \sqrt{a^{2 } + 4}} {2} \right )^{2n}.}$$

We obtain

$$\displaystyle\begin{array}{rcl} & u_{n} = \left (\frac{a+\sqrt{a^{2 } +4}} {2} \right )^{2n} + \left (\frac{a-\sqrt{a^{2 } +4}} {2} \right )^{2n}, & {}\\ & v_{n} = \frac{1} {\sqrt{a^{2 } +4}}\left [\left (\frac{a+\sqrt{a^{2 } +4}} {2} \right )^{2n} -\left (\frac{a-\sqrt{a^{2 } +4}} {2} \right )^{2n}\right ].& {}\\ \end{array}$$

Hence \(y_{n} = v_{n} =\alpha _{2n}\) and

$$\displaystyle\begin{array}{rcl} & x_{n} = \frac{1} {2}(u_{n} - av_{n}) & {}\\ & \!= \frac{1} {2}\!\left [\!\left (1\! - \frac{a} {\sqrt{a^{2 } +4}}\right )\!\!\left (\frac{a+\sqrt{a^{2 } +4}} {2} \right )^{2n}\! +\! \left (1\! + \frac{a} {\sqrt{a^{2 } +4}}\right )\!\!\left (\frac{a-\sqrt{a^{2 } +4}} {2} \right )^{2n}\right ]& {}\\ & = \frac{1} {\sqrt{a^{2 } +4}}\left [\left (\frac{a+\sqrt{a^{2 } +4}} {2} \right )^{2n-1} -\left (\frac{a-\sqrt{a^{2 } +4}} {2} \right )^{2n-1}\right ] =\alpha _{ 2n-1}. & {}\\ \end{array}$$

 □ 

Remarks.

  1. 1)

    Theorem 6.4.4 characterizes the pairs of consecutive terms of the sequence (α n ) n ≥ 1 defined by the linear recurrence (6.4.9).

  2. 2)

    The set consisting of α 2k , k ≥ 1, is included in the set of positive values of the polynomial

    $$\displaystyle{P_{1}(x,y) = x[1 - (x^{2} + axy - y^{2} - 1)^{2}]}$$

    and the set consisting of α 2k+1, k ≥ 0, is included in the set of positive values of the polynomial

    $$\displaystyle{P_{2}(x,y) = x[1 - (x^{2} + axy - y^{2} + 1)^{2}].}$$
  3. 3)

    The result in Theorem 6.4.4 also appears in the paper [134].

6.5 Diophantine Representations of Generalized Lucas Sequences

We define the generalized Lucas sequence (γ n ) n ≥ 0, γ n  = γ n (a, b), with parameters \(a,b \in \mathbb{Z}^{{\ast}}\) by

$$\displaystyle{ \gamma _{n+1} = f(a,b)\gamma _{n} -\gamma _{n-1},\quad n \geq 1 }$$
(6.5.1)

where \(f: \mathbb{Z}^{{\ast}}\times \mathbb{Z}^{{\ast}}\rightarrow \mathbb{Z}\) is a given function and γ 0 = γ 0(a, b), γ 1 = γ 1(a, b) are given integers.

The following theorems generalize all results in Section 6.4.

Theorem 6.5.1.

Let a,b be nonzero integers such that b ≠ 1 and a 2 − 4b > 0 is a nonsquare. All integral solutions to the equation

$$\displaystyle{ x^{2} + axy + by^{2} = 1 }$$
(6.5.2)

are given by (α n n ) n≥1 , \((-\alpha _{n},-\beta _{n})_{n\geq 1}\) , where (α n ) n≥1 , (β n ) n≥1 are the generalized Lucas sequences defined by

$$\displaystyle{ \begin{array}{l} \alpha _{n+1} = u_{0}\alpha _{n} -\alpha _{n-1},\ \alpha _{0} = 2,\ \alpha _{1} = u_{0}\text{ and}\\ \\ \beta _{n+1} = u_{0}\beta _{n} -\beta _{n-1},\ \beta _{0} = 1,\ \beta _{1} = \frac{1} {2}(u_{0} - av_{0}). \end{array} }$$
(6.5.3)

Here u 0 = u 0 (a,b), v 0 = v 0 (a,b) are the minimal solutions to the special Pell’s equation

$$\displaystyle{ u^{2} - (a^{2} - 4b)v^{2} = 4. }$$
(6.5.4)

Proof.

The general terms of the sequences (α n ) n ≥ 0 and (β n ) n ≥ 0 are given by

$$\displaystyle{\alpha _{n} = \left (\frac{u_{0} + v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n} + \left (\frac{u_{0} - v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n}}$$

and

$$\displaystyle\begin{array}{rcl} \beta _{n}&& = \frac{1} {2}\left [\left (1 - \frac{a} {\sqrt{a^{2 } - 4b}}\right )\left (\frac{u_{0} + v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n}\right. {}\\ & & \left.+\left (1 + \frac{a} {\sqrt{a^{2 } - 4b}}\right )\left (\frac{u_{0} - v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n}\right ]. {}\\ \end{array}$$

The equation (6.5.2) is equivalent to \((2x + ay)^{2} - (a^{2} - 4b)y^{2} = 4\), i.e., to the general Pell’s equation (6.5.3). From Theorem 4.4.1 its general solution is given by

$$\displaystyle{\frac{1} {2}(u_{n} + v_{n}\sqrt{a^{2 } - 4b}) = \left (\frac{u_{0} + v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n},\quad n \geq 1.}$$

It follows that

$$\displaystyle{u_{n} = \left (\frac{u_{0} + v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n} + \left (\frac{u_{0} - v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n}}$$

and

$$\displaystyle{v_{n} = \frac{1} {\sqrt{a^{2 } - 4b}}\left [\left (\frac{u_{0} + v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n} -\left (\frac{u_{0} - v_{0}\sqrt{a^{2 } - 4b}} {2} \right )^{n}\right ],\quad n \geq 1.}$$

Thus \(y_{n} = v_{n} =\alpha _{n}\) and \(x_{n} = \frac{1} {2}(u_{n} - av_{n}) =\beta _{n}\). □ 

Remark.

Theorems 6.5.1 and 6.5.2 give an useful method for solving the Diophantine equations of degree three in four variables

$$\displaystyle{x^{2} + uxy + vy^{2} = \pm 1.}$$

Indeed, setting u = a, v = b, with \(a,b \in \mathbb{Z}\), the above equations are equivalent to

$$\displaystyle{(2x + ay)^{2} - (a^{2} - 4b)y^{2} = \pm 4.}$$

If a 2 − 4b < 0, there are at most finitely many solutions.

If \(a^{2} - 4b = 0\), the equations reduce to \((2x + ay)^{2} = \pm 4\), and for a even we obtain solutions \(\left (-\frac{ka} {2} \pm 1,k\right )\), \(k \in \mathbb{Z}\).

If a 2 − 4b > 0 is a perfect square, there are at most finitely many solutions.

If a 2 − 4b > 0 is not a square, then all solutions to the equation \(x^{2} + uxy + vy^{2} = 1\) are given by \((x,y,u,v) = (\pm \alpha _{m},\pm \beta _{m},a,b)\), m ≥ 1, where (α m ), (β m ) are the generalized Lucas sequences defined in Theorem 6.5.1.

All solutions to the equation \(x^{2} + uxy + vy^{2} = -1\) are given by

$$\displaystyle{(x,y,u,v) = (\pm \alpha _{2n+1},\pm \beta _{2n+1},a,b),\quad n \geq 0,}$$

where (α m ), (β m ) are defined in Theorem 6.5.2.

For some particular values of a and b the generalized Lucas sequences (α n ) n ≥ 0 and (β n ) n ≥ 0 defined by (6.5.3) coincide with some classical sequences. In the following table we will give a few such situations (see also Section 6.4).

$$\displaystyle{\begin{array}{|c|c|c|c|} \hline a & b & \text{Equation }(6.5.2) & \text{ Solutions} \\ \hline \hline 1& - 1& x^{2} + xy - y^{2} = 1 &(F_{2n-1},F_{2n}),(-F_{2n-1},-F_{2n}) \\ \hline - 1 & - 1& x^{2} - xy - y^{2} = 1 &(F_{2n+1},F_{2n}),(-F_{2n+1},-F_{2n}) \\ \hline 2 & - 1&x^{2} + 2xy - y^{2} = 1&(P_{2n-1},P_{2n}),(-P_{2n-1},-P_{2n}) \\ \hline - 2 & - 1&x^{2} - 2xy - y^{2} = 1&(P_{2n+1},P_{2n}),(-P_{2n+1},-P_{2n}) \\ \hline \end{array} }$$

Theorem 6.5.2.

Let a,b be nonzero integers such that b ≠ 1 and a 2 − 4b > 0 is a nonsquare. Assume that the special Pell’s equation

$$\displaystyle{ s^{2} - (a^{2} - 4b)t^{2} = -4 }$$
(6.5.5)

is solvable and its minimal solution is (s 0 ,t 0 ), s 0 = s 0 (a,b), t 0 = t 0 (a,b). Then all integral solutions to the equation

$$\displaystyle{ x^{2} + axy + by^{2} = -1 }$$
(6.5.6)

are given \((\alpha _{2n+1},\beta _{2n+1})\) , \((-\alpha _{2n+1},-\beta _{2n+1})\) , n ≥ 1, where (α m ) m≥0 , (β m ) m≥0 are the generalized Lucas sequences defined by

$$\displaystyle{ \begin{array}{l} \alpha _{m+1} = s_{0}\alpha _{m} -\alpha _{m-1},\ \alpha _{0} = 2,\ \alpha _{1} = s_{0}\text{ and}\\ \\ \beta _{m+1} = s_{0}\beta _{m} -\beta _{m-1},\ \beta _{0} = 1,\ \beta _{1} = \frac{1} {2}(s_{0} - at_{0}). \end{array} }$$
(6.5.7)

Proof.

We proceed like in the previous theorem and take into account the results in Theorem 4.4.1 concerning the general solution to the equation (6.5.5). □ 

In some special cases, the generalized Lucas sequences defined by (6.5.7) yield to solutions involving well-known sequences. We will illustrate this by presenting the following table (see also Section 6.5).

$$\displaystyle{\begin{array}{|c|c|c|c|} \hline a & b & \text{Equation (6.5.6)} & \text{ Solutions} \\ \hline \hline 1& - 1& x^{2} + xy - y^{2} = -1 &(F_{2n},F_{2n+1}),(-F_{2n},-F_{2n+1}) \\ \hline - 1 & - 1& x^{2} - xy - y^{2} = -1 &(F_{2n},F_{2n-1}),(-F_{2n},-F_{2n-1}) \\ \hline 2 & - 1& x^{2} + 2xy - y^{2} = -1 &(P_{2n},P_{2n+1}),(-P_{2n},-P_{2n+1}) \\ \hline - 2 & - 1& x^{2} - 2xy - y^{2} = -1 &(P_{2n},P_{2n-1}),(-P_{2n},-P_{2n-1}) \\ \hline 5 & 5 &x^{2} + 5xy + 5y^{2} = -1& (L_{2n},-F_{2n+1}),(-L_{2n},F_{2n+1}) \\ \hline \end{array} }$$

Remarks.

  1. 1)

    The solvability condition for the general Pell’s equation (6.5.5) in Theorem 6.5.2 is necessary. Indeed, for example, for a = 5, b = 1 the equation

    $$\displaystyle{s^{2} - 21t^{2} = -4}$$

    is not solvable (the left-hand side is congruent to 0 or \(1\pmod 3\)). The corresponding equation (6.5.6):

    $$\displaystyle{x^{2} + 5xy - y^{2} = -1}$$

    is also not solvable.

  2. 2)

    The special case \(b = -1\) is studied in [134]. Particular Diophantine representations for the Fibonacci and Lucas sequences are given in [96] and [97]. We also mention the connection with the general Pell’s equation given in [61]. A particular definition for generalized Lucas sequences appears in [91].

    An interesting special case for the equation (6.5.2) is a = b. We obtain the Diophantine equation

    $$\displaystyle{ x^{2} + axy + ay^{2} = 1. }$$
    (6.5.8)

    The general Pell’s equation (6.5.4) becomes \(u^{2} - (a^{2} - 4a)v^{2} = 4\), whose minimal solution is \((u_{0},v_{0}) = (a - 2,1)\).

    With the notations in Theorem 6.5.1 the generalized Lucas sequences (α n ) n ≥ 0, (β n ) n ≥ 0 are given by

    $$\displaystyle\begin{array}{rcl} & \alpha _{n+1} = (a - 2)\alpha _{n} -\alpha _{n-1},\quad \alpha _{0} = 2,\quad \alpha _{1} = a - 2& {}\\ & \beta _{n+1} = (a - 2)\beta _{n} -\beta _{n-1},\quad \beta _{0} = 1,\quad \beta _{1} = -1. & {}\\ \end{array}$$

From Theorem 6.5.1 we obtain the following Corollary:

Corollary 6.5.3.

The equation (6.5.8) is always solvable and all of its solutions are given by (α n n ) n≥0 .

Next we study when the solutions to the equation (6.5.8) are linear combinations over \(\mathbb{Q}\) of the classical Fibonacci and Lucas sequences. The results are obtained in the paper [20].

For other results we refer to the papers [61, 91, 9698] and [134]. Also, the problem is connected to the Y.V. Matiasevich and J. Robertson way to solve the Hilbert’s Tenth Problem, and it has applications to the problem of singlefold Diophantine representation of recursively enumerable sets. In the recent paper [102] the equations \(x^{2} - kxy + y^{2} = 1\), \(x^{2} - kxy - y^{2} = 1\) are solved in terms of generalized Fibonacci and Lucas numbers. Let us mention that in the paper [83] is defined the Hankel matrices involving the Pell, Pell-Lucas and modified Pell sequences, is computed their Frobenius norm, and it is investigated some spectral properties of them.

Recall the Binet’s formulas for F n and L n :

$$\displaystyle\begin{array}{rcl} & F_{n} = \frac{1} {\sqrt{5}}\left [\left (\frac{1 + \sqrt{5}} {2} \right )^{n} -\left (\frac{1 -\sqrt{5}} {2} \right )^{n}\right ],& {}\\ & L_{n} = \left (\frac{1 + \sqrt{5}} {2} \right )^{n} + \left (\frac{1 -\sqrt{5}} {2} \right )^{n}. & {}\\ \end{array}$$

These formulas can be extended to negative integers n in a natural way. We have \(F_{-n} = (-1)^{n-1}F_{n}\) and \(L_{-n} = (-1)^{n}L_{n}\), for all n.

Theorem 6.5.4.

The solutions to the positive equation (6.5.8) are linear combinations with rational coefficients of at most two Fibonacci and Lucas numbers if and only if \(a = a_{n} = \pm L_{2n} + 2\) , n ≥ 1.

For each n, all of its integer solutions (x k ,y k ) are given by

$$\displaystyle{ \left \{\begin{array}{l} x_{k} = \frac{\varepsilon _{k}} {2}L_{2kn} \mp \frac{a_{n}} {2F_{2n}}F_{2kn} \\ y_{k} = \pm \frac{1} {F_{2n}}F_{2kn}, \end{array} \right. }$$
(6.5.9)

where k ≥ 1, signs + and − depend on k and correspond, while \(\varepsilon _{k} = \pm 1\) .

Proof.

The equation \(x^{2} + axy + ay^{2} = 1\) is equivalent to the positive special Pell’s equation

$$\displaystyle{ (2x + ay)^{2} - (a^{2} - 4a)y^{2} = 4. }$$
(6.5.10)

From formula (4.4.6) it follows that

$$\displaystyle{2x_{n} + ay_{m} =\varepsilon _{m}\left [\left (\frac{u_{1} + v_{1}\sqrt{D}} {2} \right )^{m} + \left (\frac{u_{1} - v_{1}\sqrt{D}} {2} \right )^{m}\right ]}$$

and

$$\displaystyle{y_{m} = \frac{\varepsilon _{m}} {\sqrt{D}}\left [\left (\frac{u_{1} + v_{1}\sqrt{D}} {2} \right )^{m} -\left (\frac{u_{1} - v_{1}\sqrt{D}} {2} \right )^{m}\right ],}$$

where \(m \in \mathbb{Z}\), \(\varepsilon _{m} = \pm 1\), \(D = a^{2} - 4a\), and (u 1, v 1) is the minimal positive solution to \(u^{2} - Dv^{2} = 4\). we have \((u_{1},v_{1}) = (a - 2,1)\), and combining the above relations it follows

$$\displaystyle\begin{array}{rcl} x_{m}& & = \frac{\varepsilon _{m}} {2} \left [\left (1 - \frac{a} {\sqrt{a^{2 } - 4a}}\right )\left (\frac{a - 2 + \sqrt{a^{2 } - 4a}} {2} \right )^{m}\right. \\ & & \left.+\left (1 + \frac{a} {\sqrt{a^{2 } - 4a}}\right )\left (\frac{a - 2 -\sqrt{a^{2 } - 4a}} {2} \right )^{m}\right ]{}\end{array}$$
(6.5.11)

and

$$\displaystyle{ y_{m} = \frac{\varepsilon _{m}} {\sqrt{a^{2 } - 4a}}\left [\left (\frac{a - 2 + \sqrt{a^{2 } - 4a}} {2} \right )^{m} -\left (\frac{a - 2 -\sqrt{a^{2 } - 4a}} {2} \right )^{m}\right ]. }$$
(6.5.12)

Taking into account Binet’s formulas, solution (x m , y m ) is representable in terms of F m and L m only if \(a^{2} - 4a = 5s^{2}\), for some positive integer s. This is equivalent to the special Pell’s equation

$$\displaystyle{ (a - 2)^{2} - 5s^{2} = 4, }$$
(6.5.13)

whose minimal solution is \((a_{1} - 2,s_{1}) = (3,1)\). The general integer solution to (6.5.13) is

$$\displaystyle{a_{n} - 2 =\varepsilon _{n}\left [\left (\frac{3 + \sqrt{5}} {2} \right )^{n} + \left (\frac{3 -\sqrt{5}} {2} \right )^{n}\right ] =\varepsilon _{ n}L_{2n},}$$

and

$$\displaystyle{s_{n} = \frac{\varepsilon _{n}} {\sqrt{5}}\left [\left (\frac{3 + \sqrt{5}} {2} \right )^{n} -\left (\frac{3 -\sqrt{5}} {2} \right )^{n}\right ] =\varepsilon _{ n}F_{2n},}$$

where n is an integer and \(\varepsilon _{n} = \pm 1\).

From \((2x + ay)^{2} - (a^{2} - 4a)y^{2} = 4\) we find \((2x + a_{n}y)^{2} - 5(s_{n}y)^{2} = 4\), with integer solution (x m , y m ) given by

$$\displaystyle{2x_{m} + a_{n}y_{m} =\varepsilon _{2m}L_{2m}\quad \text{and}\quad s_{n}y_{m} = \pm F_{2m}.}$$

Hence

$$\displaystyle{ x_{m} = \frac{1} {2}\left [\varepsilon _{2m}L_{2m} \mp a_{n}\frac{F_{2m}} {F_{2n}} \right ],\quad y_{m} = \pm \frac{F_{2m}} {F_{2n}}, }$$
(6.5.14)

where signs + and − correspond, and \(\varepsilon _{2m} = \pm 1\).

Taking into account that F 2n divides F 2m if and only if n divides m (see [21, p. 180] and [90, p. 39]), it is necessary that m = kn, for some positive integer k. Formula (6.5.14) becomes (6.5.9).

A parity argument shows that in the equation

$$\displaystyle{(x + ay)^{2} - (a^{2} - 4a)y^{2} = 4,}$$

X is even, so x k in (6.5.9) is always an integer. □ 

The following two tables give the integer solutions to equation (6.5.8) at level k, including the trivial solution obtained for k = 0.

$$\displaystyle\begin{array}{rcl} & \begin{array}{|c|c|c|c|} \hline n &a_{n} = L_{2n} + 2 & \text{Equation (6.5.8)} & \text{Solutions} \\ \hline \hline & & & \\ 1 & 5 & x^{2} + 5xy + 5y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{2k} \mp \frac{5} {2}F_{2k},\ y = \pm F_{2k}\\ &&& \\ \hline & & & \\ 2 & 9 & x^{2} + 9xy + 9y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{4k} \mp \frac{5} {6}F_{4k},\ y = \pm \frac{1} {3}F_{4k}\\ &&& \\ \hline & & & \\ 3 & 20 & x^{2} + 20xy + 20y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{6k} \mp \frac{5} {4}F_{6k},\ y = \pm \frac{1} {8}F_{6k}\\ &&& \\ \hline & & & \\ 4 & 49 & x^{2} + 49xy + 49y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{8k} \mp \frac{7} {6}F_{8k},\ y = \pm \frac{1} {21}F_{8k}\\ &&& \\ \hline & & & \\ 5 & 125 & x^{2} + 125xy + 125y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{10k} \mp \frac{25} {22}F_{10k},\ y = \pm \frac{1} {55}F_{10k}\\ &&& \\ \hline & & & \\ 6 & 324 & x^{2} + 324xy + 324y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{12k} \mp \frac{9} {8}F_{12k},\ y = \pm \frac{1} {144}F_{12k} \\ \hline \end{array} & {}\\ & \begin{array}{|c|c|c|c|} \hline n &a_{n} = -L_{2n} + 2 & \text{Equation (6.5.8)} & \text{Solutions} \\ \hline \hline & & & \\ 1 & - 1 & x^{2} - xy - y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{2k} \pm \frac{1} {2}F_{2k},\ y = \pm F_{2k}\\ &&& \\ \hline & & & \\ 2 & - 5 & x^{2} - 5xy - 5y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{4k} \pm \frac{5} {6}F_{4k},\ y = \pm \frac{1} {3}F_{4k} \\ \hline & & & \\ 3 & - 16 & x^{2} - 16xy - 16y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{6k} \pm F_{6k},\ y = \pm \frac{1} {8}F_{6k}\\ &&& \\ \hline & & & \\ 4 & - 45 & x^{2} - 45xy - 45y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{8k} \pm \frac{15} {14}F_{8k},\ y = \pm \frac{1} {21}F_{8k}\\ &&& \\ \hline & & & \\ 5 & - 121 & x^{2} - 121xy - 121y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{10k} \mp \frac{11} {10}F_{10k},\ y = \pm \frac{1} {55}F_{10k}\\ &&& \\ \hline & & & \\ 6 & - 320 & x^{2} - 320xy - 320y^{2} = 1 & x = \frac{\varepsilon _{k}} {2} L_{12k} \mp \frac{10} {9} F_{12k},\ y = \pm \frac{1} {144}F_{12k} \\ \hline \end{array} & {}\\ \end{array}$$

Next we will consider the “negative” equation of the type (6.5.8):

$$\displaystyle{ x^{2} + axy + ay^{2} = -1. }$$
(6.5.15)

Unlike the result in Theorem 6.5.4, there are only two values of a for which the corresponding property holds.

Theorem 6.5.5.

The solutions to the negative equation (6.5.15) are linear combinations with rational coefficients of at most two Fibonacci and Lucas numbers if and only if \(a = -1\) or a = 5.

If \(a = -1\) , all of its integer solutions (x m ,y m ) are given by

$$\displaystyle{ x_{m} = \frac{\varepsilon _{m}} {2} L_{2m+1} \pm \frac{1} {2}F_{2m+1},\quad y_{m} = \pm F_{2m+1},\quad m \geq 0. }$$
(6.5.16)

If a = 5, all integer solutions (x m ,y m ) are

$$\displaystyle{ x_{m} = \frac{\varepsilon _{m}} {2} L_{2m+1} \mp 5F_{2m+1},\quad y_{m} = \pm F_{2m+1},\quad m \geq 0. }$$
(6.5.17)

The signs + and − depend on m and correspond, while \(\varepsilon _{m} = \pm 1\) .

Proof.

As in the proof of Theorem 6.5.4 the equation is equivalent to

$$\displaystyle{(2x + ay)^{2} - (a^{2} - 4a)y^{2} = -4.}$$

Suppose that this negative special Pell’s equation is solvable. Its solution (x m , y m ) is representable in terms of Fibonacci and Lucas numbers as a linear combination with rational coefficients only if \(a^{2} - 4a = 5s^{2}\). As in the proof of Theorem 6.5.4 we obtain \(a_{n} = \pm L_{2n} + 2\) and s n  = ±F 2n , n ≥ 1.

The equation \((2x + ay)^{2} - (a^{2} - 4a)y^{2} = -4\) becomes

$$\displaystyle{(2x + ay)^{2} - 5(s_{ n}y)^{2} = -4,}$$

whose integer solutions are \(2x_{m} + ay_{m} =\varepsilon _{m}L_{2m+1}\) and \(s_{n}y_{m} = \pm F_{2m+1}\). It follows that

$$\displaystyle{y_{m} = \pm \frac{F_{2m+1}} {F_{2n}},\quad m \geq 1.}$$

If n ≥ 2, then F 2n  ≥ 2, and since 2n does not divide 2m + 1, it follows that F 2n does not divide F 2m+1 (see [21, pp. 180] and [90, pp. 39]), hence y m is not an integer.

Thus n = 1 and so \(a = \pm L_{2} + 2\), i.e., \(a = -1\) or a = 5.

For \(a = -1\), it follows \(y_{m} = \pm F_{2m+1}\) and \(2x_{m} - y_{m} =\varepsilon _{m}L_{2m+1}\), and we obtain solutions (6.5.16).

If a = 5, then \(y_{m} = \pm F_{2m+1}\) and \(2x_{m} + 5y_{m} =\varepsilon _{m}L_{2m+1}\), yielding the solutions (6.5.17). □ 

Remark.

On the other hand, it is more or less known Zeckendorf’s theorem in [230], which states that every positive integer can be represented uniquely as the sum of one or more distinct Fibonacci numbers in such a way that the sum does not include two consecutive Fibonacci numbers. Such a sum is called Zeckendorf representation and it is related to the Fibonacci coding of a positive integer. Our results are completely different, because the number of terms is reduced to at most two, and the sum in the representation of solutions is a linear combination with rational coefficients.