Pell number

Last updated
The sides of the squares used to construct a silver spiral are the Pell numbers Silver spiral approximation.svg
The sides of the squares used to construct a silver spiral are the Pell numbers

In mathematics, the Pell numbers are an infinite sequence of integers, known since ancient times, that comprise the denominators of the closest rational approximations to the square root of 2. This sequence of approximations begins 1/1, 3/2, 7/5, 17/12, and 41/29, so the sequence of Pell numbers begins with 1, 2, 5, 12, and 29. The numerators of the same sequence of approximations are half the companion Pell numbers or Pell–Lucas numbers; these numbers form a second infinite sequence that begins with 2, 6, 14, 34, and 82.

Contents

Both the Pell numbers and the companion Pell numbers may be calculated by means of a recurrence relation similar to that for the Fibonacci numbers, and both sequences of numbers grow exponentially, proportionally to powers of the silver ratio 1 + 2. As well as being used to approximate the square root of two, Pell numbers can be used to find square triangular numbers, to construct integer approximations to the right isosceles triangle, and to solve certain combinatorial enumeration problems. [1]

As with Pell's equation, the name of the Pell numbers stems from Leonhard Euler's mistaken attribution of the equation and the numbers derived from it to John Pell. The Pell–Lucas numbers are also named after Édouard Lucas, who studied sequences defined by recurrences of this type; the Pell and companion Pell numbers are Lucas sequences.

Pell numbers

The Pell numbers are defined by the recurrence relation:

In words, the sequence of Pell numbers starts with 0 and 1, and then each Pell number is the sum of twice the previous Pell number and the Pell number before that. The first few terms of the sequence are

0, 1, 2, 5, 12, 29, 70, 169, 408, 985, 2378, 5741, 13860, … (sequence A000129 in the OEIS ).

Analogously to the Binet formula, the Pell numbers can also be expressed by the closed form formula

For large values of n, the (1 + 2)n term dominates this expression, so the Pell numbers are approximately proportional to powers of the silver ratio 1 + 2, analogous to the growth rate of Fibonacci numbers as powers of the golden ratio.

A third definition is possible, from the matrix formula

Many identities can be derived or proven from these definitions; for instance an identity analogous to Cassini's identity for Fibonacci numbers,

is an immediate consequence of the matrix formula (found by considering the determinants of the matrices on the left and right sides of the matrix formula). [2]

Approximation to the square root of two

Rational approximations to regular octagons, with coordinates derived from the Pell numbers. Pell octagons.svg
Rational approximations to regular octagons, with coordinates derived from the Pell numbers.

Pell numbers arise historically and most notably in the rational approximation to 2. If two large integers x and y form a solution to the Pell equation

then their ratio x/y provides a close approximation to 2. The sequence of approximations of this form is

where the denominator of each fraction is a Pell number and the numerator is the sum of a Pell number and its predecessor in the sequence. That is, the solutions have the form

The approximation

of this type was known to Indian mathematicians in the third or fourth century BCE. [3] The Greek mathematicians of the fifth century BCE also knew of this sequence of approximations: [4] Plato refers to the numerators as rational diameters. [5] In the second century CE Theon of Smyrna used the term the side and diameter numbers to describe the denominators and numerators of this sequence. [6]

These approximations can be derived from the continued fraction expansion of :

Truncating this expansion to any number of terms produces one of the Pell-number-based approximations in this sequence; for instance,

As Knuth (1994) describes, the fact that Pell numbers approximate 2 allows them to be used for accurate rational approximations to a regular octagon with vertex coordinates Pi, ±Pi+1) and Pi+1, ±Pi). All vertices are equally distant from the origin, and form nearly uniform angles around the origin. Alternatively, the points , , and form approximate octagons in which the vertices are nearly equally distant from the origin and form uniform angles.

Primes and squares

A Pell prime is a Pell number that is prime. The first few Pell primes are

2, 5, 29, 5741, 33461, 44560482149, 1746860020068409, 68480406462161287469, ... (sequence A086383 in the OEIS ).

The indices of these primes within the sequence of all Pell numbers are

2, 3, 5, 11, 13, 29, 41, 53, 59, 89, 97, 101, 167, 181, 191, 523, 929, 1217, 1301, 1361, 2087, 2273, 2393, 8093, ... (sequence A096650 in the OEIS )

These indices are all themselves prime. As with the Fibonacci numbers, a Pell number Pn can only be prime if n itself is prime, because if d is a divisor of n then Pd is a divisor of Pn.

The only Pell numbers that are squares, cubes, or any higher power of an integer are 0, 1, and 169 = 132. [7]

However, despite having so few squares or other powers, Pell numbers have a close connection to square triangular numbers. [8] Specifically, these numbers arise from the following identity of Pell numbers:

The left side of this identity describes a square number, while the right side describes a triangular number, so the result is a square triangular number.

Falcón and Díaz-Barrero (2006) proved another identity relating Pell numbers to squares and showing that the sum of the Pell numbers up to P4n+1 is always a square:

For instance, the sum of the Pell numbers up to P5, 0 + 1 + 2 + 5 + 12 + 29 = 49, is the square of P2 + P3 = 2 + 5 = 7. The numbers P2n + P2n+1 forming the square roots of these sums,

1, 7, 41, 239, 1393, 8119, 47321, … (sequence A002315 in the OEIS ),

are known as the Newman–Shanks–Williams (NSW) numbers.

Pythagorean triples

Integer right triangles with nearly equal legs, derived from the Pell numbers. Pell right triangles.svg
Integer right triangles with nearly equal legs, derived from the Pell numbers.

If a right triangle has integer side lengths a, b, c (necessarily satisfying the Pythagorean theorem a2 + b2 = c2), then (a,b,c) is known as a Pythagorean triple. As Martin (1875) describes, the Pell numbers can be used to form Pythagorean triples in which a and b are one unit apart, corresponding to right triangles that are nearly isosceles. Each such triple has the form

The sequence of Pythagorean triples formed in this way is

(4,3,5), (20,21,29), (120,119,169), (696,697,985), …

Pell–Lucas numbers

The companion Pell numbers or Pell–Lucas numbers are defined by the recurrence relation

In words: the first two numbers in the sequence are both 2, and each successive number is formed by adding twice the previous Pell–Lucas number to the Pell–Lucas number before that, or equivalently, by adding the next Pell number to the previous Pell number: thus, 82 is the companion to 29, and 82 = 2 × 34 + 14 = 70 + 12. The first few terms of the sequence are (sequence A002203 in the OEIS ): 2, 2, 6, 14, 34, 82, 198, 478, …

Like the relationship between Fibonacci numbers and Lucas numbers,

for all natural numbers n.

The companion Pell numbers can be expressed by the closed form formula

These numbers are all even; each such number is twice the numerator in one of the rational approximations to discussed above.

Like the Lucas sequence, if a Pell–Lucas number 1/2Qn is prime, it is necessary that n be either prime or a power of 2. The Pell–Lucas primes are

3, 7, 17, 41, 239, 577, … (sequence A086395 in the OEIS ).

For these n are

2, 3, 4, 5, 7, 8, 16, 19, 29, 47, 59, 163, 257, 421, … (sequence A099088 in the OEIS ).

Computations and connections

The following table gives the first few powers of the silver ratio δ = δS = 1 + 2 and its conjugate δ = 1  2.

n(1 + 2)n(1 − 2)n
01 + 02 = 11 − 02 = 1
11 + 12 = 2.41421…1 − 12 = −0.41421…
23 + 22 = 5.82842…3 − 22 = 0.17157…
37 + 52 = 14.07106…7 − 52 = −0.07106…
417 + 122 = 33.97056…17 − 122 = 0.02943…
541 + 292 = 82.01219…41 − 292 = −0.01219…
699 + 702 = 197.9949…99 − 702 = 0.0050…
7239 + 1692 = 478.00209…239 − 1692 = −0.00209…
8577 + 4082 = 1153.99913…577 − 4082 = 0.00086…
91393 + 9852 = 2786.00035…1393 − 9852 = −0.00035…
103363 + 23782 = 6725.99985…3363 − 23782 = 0.00014…
118119 + 57412 = 16238.00006…8119 − 57412 = −0.00006…
1219601 + 138602 = 39201.99997…19601 − 138602 = 0.00002…

The coefficients are the half-companion Pell numbers Hn and the Pell numbers Pn which are the (non-negative) solutions to H2 − 2P2 = ±1. A square triangular number is a number

which is both the t-th triangular number and the s-th square number. A near-isosceles Pythagorean triple is an integer solution to a2 + b2 = c2 where a + 1 = b.

The next table shows that splitting the odd number Hn into nearly equal halves gives a square triangular number when n is even and a near isosceles Pythagorean triple when n is odd. All solutions arise in this manner.

nHnPntt +1sabc
010010   
111   011
232121   
375   345
41712896   
54129   202129
69970495035   
7239169   119120169
8577408288289204   
91393985   696697985
1033632378168116821189   
1181195741   405940605741
121960113860980098016930   

Definitions

The half-companion Pell numbers Hn and the Pell numbers Pn can be derived in a number of easily equivalent ways.

Raising to powers

From this it follows that there are closed forms:

and

Paired recurrences

Reciprocal recurrence formulas

Let n be at least 2.

Matrix formulations

So

Approximations

The difference between Hn and Pn2 is

which goes rapidly to zero. So

is extremely close to 2Hn.

From this last observation it follows that the integer ratios Hn/Pn rapidly approach 2; and Hn/Hn−1 and Pn/Pn−1 rapidly approach 1 + 2.

H2  2P2 = ±1

Since 2 is irrational, we cannot have H/P = 2, i.e.,

The best we can achieve is either

The (non-negative) solutions to H2 − 2P2 = 1 are exactly the pairs (Hn, Pn) with n even, and the solutions to H2 − 2P2 = −1 are exactly the pairs (Hn, Pn) with n odd. To see this, note first that

so that these differences, starting with H2
0
− 2P2
0
= 1
, are alternately 1 and −1. Then note that every positive solution comes in this way from a solution with smaller integers since

The smaller solution also has positive integers, with the one exception: H = P = 1 which comes from H0 = 1 and P0 = 0.

Square triangular numbers

The required equation

is equivalent to which becomes H2 = 2P2 + 1 with the substitutions H = 2t +1 and P = 2s. Hence the n-th solution is

Observe that t and t +1 are relatively prime, so that t(t +1)/2 = s2 happens exactly when they are adjacent integers, one a square H2 and the other twice a square 2P2. Since we know all solutions of that equation, we also have

and

This alternate expression is seen in the next table.

nHnPntt +1sabc
010      
111121345
232896202129
375495035119120169
41712288289204696697985
54129168116821189405940605741
69970980098016930236602366133461

Pythagorean triples

The equality c2 = a2 + (a + 1)2 = 2a2 + 2a + 1 occurs exactly when 2c2 = 4a2 + 4a + 2 which becomes 2P2 = H2 + 1 with the substitutions H = 2a + 1 and P = c. Hence the n-th solution is an = H2n+1 − 1/2 and cn = P2n+1.

The table above shows that, in one order or the other, an and bn = an + 1 are HnHn+1 and 2PnPn+1 while cn = Hn+1Pn + Pn+1Hn.

Notes

  1. For instance, Sellers (2002) proves that the number of perfect matchings in the Cartesian product of a path graph and the graph K4  e can be calculated as the product of a Pell number with the corresponding Fibonacci number.
  2. For the matrix formula and its consequences see Ercolano (1979) and Kilic and Tasci (2005). Additional identities for the Pell numbers are listed by Horadam (1971) and Bicknell (1975).
  3. As recorded in the Shulba Sutras; see e.g. Dutka (1986), who cites Thibaut (1875) for this information.
  4. See Knorr (1976) for the fifth century date, which matches Proclus' claim that the side and diameter numbers were discovered by the Pythagoreans. For more detailed exploration of later Greek knowledge of these numbers see Thompson (1929), Vedova (1951), Ridenhour (1986), Knorr (1998), and Filep (1999).
  5. For instance, as several of the references from the previous note observe, in Plato's Republic there is a reference to the "rational diameter of 5", by which Plato means 7, the numerator of the approximation 7/5 of which 5 is the denominator.
  6. Heath, Sir Thomas Little (1921), History of Greek Mathematics: From Thales to Euclid, Courier Dover Publications, p. 112, ISBN   9780486240732 .
  7. Pethő (1992); Cohn (1996). Although the Fibonacci numbers are defined by a very similar recurrence to the Pell numbers, Cohn writes that an analogous result for the Fibonacci numbers seems much more difficult to prove. (However, this was proven in 2006 by Bugeaud et al.)
  8. Sesskin (1962). See the square triangular number article for a more detailed derivation.

Related Research Articles

<span class="mw-page-title-main">Euclidean algorithm</span> Algorithm for computing greatest common divisors

In mathematics, the Euclidean algorithm, or Euclid's algorithm, is an efficient method for computing the greatest common divisor (GCD) of two integers (numbers), the largest number that divides them both without a remainder. It is named after the ancient Greek mathematician Euclid, who first described it in his Elements . It is an example of an algorithm, a step-by-step procedure for performing a calculation according to well-defined rules, and is one of the oldest algorithms in common use. It can be used to reduce fractions to their simplest form, and is a part of many other number-theoretic and cryptographic calculations.

<span class="mw-page-title-main">Fibonacci sequence</span> Numbers obtained by adding the two previous ones

In mathematics, the Fibonacci sequence is a sequence in which each number is the sum of the two preceding ones. Numbers that are part of the Fibonacci sequence are known as Fibonacci numbers, commonly denoted Fn. The sequence commonly starts from 0 and 1, although some authors start the sequence from 1 and 1 or sometimes from 1 and 2. Starting from 0 and 1, the sequence begins

<span class="mw-page-title-main">Square root</span> Number whose square is a given number

In mathematics, a square root of a number x is a number y such that ; in other words, a number y whose square is x. For example, 4 and −4 are square roots of 16 because .

In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integer part and another reciprocal, and so on. In a finite continued fraction, the iteration/recursion is terminated after finitely many steps by using an integer in lieu of another continued fraction. In contrast, an infinite continued fraction is an infinite expression. In either case, all integers in the sequence, other than the first, must be positive. The integers are called the coefficients or terms of the continued fraction.

<span class="mw-page-title-main">Harmonic number</span> Sum of the first n whole number reciprocals; 1/1 + 1/2 + 1/3 + ... + 1/n

In mathematics, the n-th harmonic number is the sum of the reciprocals of the first n natural numbers:

<span class="mw-page-title-main">Modular group</span> Orientation-preserving mapping class group of the torus

In mathematics, the modular group is the projective special linear group of 2 × 2 matrices with integer coefficients and determinant 1. The matrices A and A are identified. The modular group acts on the upper-half of the complex plane by fractional linear transformations, and the name "modular group" comes from the relation to moduli spaces and not from modular arithmetic.

<span class="mw-page-title-main">Square root of 2</span> Unique positive real number which when multiplied by itself gives 2

The square root of 2 is a positive real number that, when multiplied by itself, equals the number 2. It may be written in mathematics as or . It is an algebraic number, and therefore not a transcendental number. Technically, it should be called the principal square root of 2, to distinguish it from the negative number with the same property.

<span class="mw-page-title-main">Silver ratio</span> Ratio of numbers, approximately 1:2.4

In mathematics, two quantities are in the silver ratio if the ratio of the smaller of those two quantities to the larger quantity is the same as the ratio of the larger quantity to the sum of the smaller quantity and twice the larger quantity. This defines the silver ratio as an irrational mathematical constant, whose value of one plus the square root of 2 is approximately 2.4142135623. Its name is an allusion to the golden ratio; analogously to the way the golden ratio is the limiting ratio of consecutive Fibonacci numbers, the silver ratio is the limiting ratio of consecutive Pell numbers. The silver ratio is denoted by δS.

<span class="mw-page-title-main">Plastic ratio</span> Algebraic integer, approximately 1.3247

In mathematics, the plastic ratio is a geometrical proportion close to 53/40. Its true value is the real solution of the equation x3 = x + 1.

In mathematics an even integer, that is, a number that is divisible by 2, is called evenly even or doubly even if it is a multiple of 4, and oddly even or singly even if it is not. The former names are traditional ones, derived from ancient Greek mathematics; the latter have become common in recent decades.

Methods of computing square roots are algorithms for approximating the non-negative square root of a positive real number . Since all square roots of natural numbers, other than of perfect squares, are irrational, square roots can usually only be computed to some finite precision: these methods typically construct a series of increasingly accurate approximations.

The Engel expansion of a positive real number x is the unique non-decreasing sequence of positive integers such that

Approximations of <span class="texhtml mvar" style="font-style:italic;">π</span> Varying methods used to calculate π

Approximations for the mathematical constant pi in the history of mathematics reached an accuracy within 0.04% of the true value before the beginning of the Common Era. In Chinese mathematics, this was improved to approximations correct to what corresponds to about seven decimal digits by the 5th century.

In mathematics, the Fibonacci numbers form a sequence defined recursively by:

In mathematics, a quadratic equation is a polynomial equation of the second degree. The general form is

In mathematics, an infinite periodic continued fraction is a continued fraction that can be placed in the form

The square root of 5 is the positive real number that, when multiplied by itself, gives the prime number 5. It is more precisely called the principal square root of 5, to distinguish it from the negative number with the same property. This number appears in the fractional expression for the golden ratio. It can be denoted in surd form as:

The metallic means of the successive natural numbers are the continued fractions:

<span class="mw-page-title-main">Square root of 6</span> Positive real number which when multiplied by itself gives 6

The square root of 6 is the positive real number that, when multiplied by itself, gives the natural number 6. It is more precisely called the principal square root of 6, to distinguish it from the negative number with the same property. This number appears in numerous geometric and number-theoretic contexts. It can be denoted in surd form as:

<span class="mw-page-title-main">Square root of 7</span> Positive real number which when multiplied by itself gives 7

The square root of 7 is the positive real number that, when multiplied by itself, gives the prime number 7. It is more precisely called the principal square root of 7, to distinguish it from the negative number with the same property. This number appears in various geometric and number-theoretic contexts. It can be denoted in surd form as:

References