Pell Sequence
   HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, the Pell numbers are an infinite
sequence In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is calle ...
of
integers An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign (−1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language o ...
, known since ancient times, that comprise the
denominator A fraction (from la, fractus, "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight ...
s of the closest rational approximations to the
square root of 2 The square root of 2 (approximately 1.4142) is a positive real number that, when multiplied by itself, equals the number 2. It may be written in mathematics as \sqrt or 2^, and is an algebraic number. Technically, it should be called the princip ...
. This sequence of approximations begins , , , , and , 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. Both the Pell numbers and the companion Pell numbers may be calculated by means of a
recurrence relation In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
similar to that for the
Fibonacci number In mathematics, the Fibonacci numbers, commonly denoted , form a sequence, the Fibonacci sequence, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start the sequence from ...
s, and both sequences of numbers grow exponentially, proportionally to powers of the
silver ratio In mathematics, two quantities are in the silver ratio (or silver mean) 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 t ...
1 + . As well as being used to approximate the square root of two, Pell numbers can be used to find
square triangular number In mathematics, a square triangular number (or triangular square number) is a number which is both a triangular number and a perfect square. There are infinitely many square triangular numbers; the first few are: :0, 1, 36, , , , , , , Expl ...
s, to construct integer approximations to the right isosceles triangle, and to solve certain
combinatorial enumeration Enumerative combinatorics is an area of combinatorics that deals with the number of ways that certain patterns can be formed. Two examples of this type of problem are counting combinations and counting permutations. More generally, given an infini ...
problems. As with
Pell's equation Pell's equation, also called the Pell–Fermat equation, is any Diophantine equation of the form x^2 - ny^2 = 1, where ''n'' is a given positive nonsquare integer, and integer solutions are sought for ''x'' and ''y''. In Cartesian coordinate ...
, 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 __NOTOC__ François Édouard Anatole Lucas (; 4 April 1842 – 3 October 1891) was a French mathematician. Lucas is known for his study of the Fibonacci sequence. The related Lucas sequences and Lucas numbers are named after him. Biography Lucas ...
, who studied sequences defined by recurrences of this type; the Pell and companion Pell numbers are
Lucas sequence In mathematics, the Lucas sequences U_n(P,Q) and V_n(P, Q) are certain constant-recursive integer sequences that satisfy the recurrence relation : x_n = P \cdot x_ - Q \cdot x_ where P and Q are fixed integers. Any sequence satisfying this recu ...
s.


Pell numbers

The Pell numbers are defined by the
recurrence relation In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
: :P_n=\begin0&\mboxn=0;\\1&\mboxn=1;\\2P_+P_&\mbox\end 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,… . The Pell numbers can also be expressed by the closed form formula :P_n=\frac. For large values of ''n'', the term dominates this expression, so the Pell numbers are approximately proportional to powers of the
silver ratio In mathematics, two quantities are in the silver ratio (or silver mean) 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 t ...
, analogous to the growth rate of Fibonacci numbers as powers of the
golden ratio In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Expressed algebraically, for quantities a and b with a > b > 0, where the Greek letter phi ( ...
. A third definition is possible, from the
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** ''The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
formula :\begin P_ & P_n \\ P_n & P_ \end = \begin 2 & 1 \\ 1 & 0 \end^n. Many identities can be derived or proven from these definitions; for instance an identity analogous to Cassini's identity for Fibonacci numbers, :P_P_-P_n^2 = (-1)^n, is an immediate consequence of the matrix formula (found by considering the
determinant In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if and ...
s of the matrices on the left and right sides of the matrix formula).


Approximation to the square root of two

Pell numbers arise historically and most notably in the rational approximation to . If two large integers ''x'' and ''y'' form a solution to the
Pell equation Pell's equation, also called the Pell–Fermat equation, is any Diophantine equation of the form x^2 - ny^2 = 1, where ''n'' is a given positive nonsquare integer, and integer solutions are sought for ''x'' and ''y''. In Cartesian coordinate ...
:x^2-2y^2=\pm 1, then their ratio ' provides a close approximation to . The sequence of approximations of this form is :\frac11, \frac32, \frac75, \frac, \frac, \frac, \dots 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 :\frac. The approximation :\sqrt 2\approx\frac of this type was known to Indian mathematicians in the third or fourth century B.C. The Greek mathematicians of the fifth century B.C. also knew of this sequence of approximations: Plato refers to the numerators as rational diameters. In the 2nd century CE
Theon of Smyrna Theon of Smyrna ( el, Θέων ὁ Σμυρναῖος ''Theon ho Smyrnaios'', ''gen.'' Θέωνος ''Theonos''; fl. 100 CE) was a Greek philosopher and mathematician, whose works were strongly influenced by the Pythagorean school of thought. His ...
used the term the side and diameter numbers to describe the denominators and numerators of this sequence. These approximations can be derived from the
continued fraction In mathematics, a continued fraction is an expression (mathematics), expression obtained through an iterative process of representing a number as the sum of its integer part and the multiplicative inverse, reciprocal of another number, then writ ...
expansion of \scriptstyle\sqrt 2: :\sqrt 2 = 1 + \cfrac. Truncating this expansion to any number of terms produces one of the Pell-number-based approximations in this sequence; for instance, :\frac = 1 + \cfrac. As Knuth (1994) describes, the fact that Pell numbers approximate allows them to be used for accurate rational approximations to a regular
octagon In geometry, an octagon (from the Greek ὀκτάγωνον ''oktágōnon'', "eight angles") is an eight-sided polygon or 8-gon. A '' regular octagon'' has Schläfli symbol and can also be constructed as a quasiregular truncated square, t, whi ...
with vertex coordinates and . All vertices are equally distant from the origin, and form nearly uniform angles around the origin. Alternatively, the points (\pm(P_i+P_),0), (0,\pm(P_i+P_)), and (\pm P_i,\pm P_i) 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 A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
. The first few Pell primes are :2, 5, 29, 5741, 33461, 44560482149, 1746860020068409, 68480406462161287469, ... . 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, ... These indices are all themselves prime. As with the Fibonacci numbers, a Pell number ''P''''n'' can only be prime if ''n'' itself is prime, because if ''d'' is a divisor of ''n'' then ''P''''d'' is a divisor of ''P''''n''. The only Pell numbers that are squares, cubes, or any higher power of an integer are 0, 1, and 169 = 132. However, despite having so few squares or other powers, Pell numbers have a close connection to
square triangular number In mathematics, a square triangular number (or triangular square number) is a number which is both a triangular number and a perfect square. There are infinitely many square triangular numbers; the first few are: :0, 1, 36, , , , , , , Expl ...
s.Sesskin (1962). See the
square triangular number In mathematics, a square triangular number (or triangular square number) is a number which is both a triangular number and a perfect square. There are infinitely many square triangular numbers; the first few are: :0, 1, 36, , , , , , , Expl ...
article for a more detailed derivation.
Specifically, these numbers arise from the following identity of Pell numbers: :\bigl(\left(P_+P_k\right)\cdot P_k\bigr)^2 = \frac. The left side of this identity describes a
square number In mathematics, a square number or perfect square is an integer that is the square (algebra), square of an integer; in other words, it is the multiplication, product of some integer with itself. For example, 9 is a square number, since it equals ...
, while the right side describes a
triangular number A triangular number or triangle number counts objects arranged in an equilateral triangle. Triangular numbers are a type of figurate number, other examples being square numbers and cube numbers. The th triangular number is the number of dots in ...
, 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 ''P''4''n''+1 is always a square: :\sum_^ P_i = \left(\sum_^n 2^r\right)^2 = \left(P_+P_\right)^2. For instance, the sum of the Pell numbers up to ''P''5, , is the square of . The numbers forming the square roots of these sums, :1, 7, 41, 239, 1393, 8119, 47321,… , are known as the Newman–Shanks–Williams (NSW) numbers.


Pythagorean triples

If a
right triangle A right triangle (American English) or right-angled triangle (British), or more formally an orthogonal triangle, formerly called a rectangled triangle ( grc, ὀρθόσγωνία, lit=upright angle), is a triangle in which one angle is a right an ...
has integer side lengths ''a'', ''b'', ''c'' (necessarily satisfying the
Pythagorean theorem In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposite t ...
), then (''a'',''b'',''c'') is known as a
Pythagorean triple A Pythagorean triple consists of three positive integers , , and , such that . Such a triple is commonly written , and a well-known example is . If is a Pythagorean triple, then so is for any positive integer . A primitive Pythagorean triple is ...
. 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 :\left(2P_P_, P_^2 - P_^2, P_^2 + P_^2=P_\right). 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 mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
:Q_n=\begin2&\mboxn=0;\\2&\mboxn=1;\\2Q_+Q_&\mbox\end 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 The first few terms of the sequence are : 2, 2, 6, 14, 34, 82, 198,
478 Year 478 (Roman numerals, CDLXXVIII) was a common year starting on Sunday (link will display the full calendar) of the Julian calendar. At the time, it was known as the Year of the Consulship of Illus without colleague (or, less frequently, yea ...
,… Like the relationship between
Fibonacci number In mathematics, the Fibonacci numbers, commonly denoted , form a sequence, the Fibonacci sequence, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start the sequence from ...
s and
Lucas number The Lucas numbers or Lucas series are an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci numbers. Lucas numbers and Fibonacci nu ...
s, :Q_n=\frac for all natural numbers ''n''. The companion Pell numbers can be expressed by the closed form formula :Q_n=\left(1+\sqrt 2\right)^n+\left(1-\sqrt 2\right)^n. These numbers are all even; each such number is twice the numerator in one of the rational approximations to \scriptstyle\sqrt 2 discussed above. Like the Lucas sequence, if a Pell–Lucas number ''Qn'' 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,… . For these ''n'' are :2, 3, 4, 5, 7, 8, 16, 19, 29, 47, 59, 163, 257, 421,… .


Computations and connections

The following table gives the first few powers of the
silver ratio In mathematics, two quantities are in the silver ratio (or silver mean) 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 t ...
''δ'' = ''δ''S = 1 +  and its conjugate = 1 − . : The coefficients are the half-companion Pell numbers ''Hn'' and the Pell numbers ''Pn'' which are the (non-negative) solutions to . A
square triangular number In mathematics, a square triangular number (or triangular square number) is a number which is both a triangular number and a perfect square. There are infinitely many square triangular numbers; the first few are: :0, 1, 36, , , , , , , Expl ...
is a number :N=\frac=s^2, which is both the ''t''th triangular number and the ''s''th square number. A ''near-isosceles Pythagorean triple'' is an integer solution to where . 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. :


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

:\left(1+\sqrt2\right)^n=H_n+P_n\sqrt :\left(1-\sqrt2\right)^n=H_n-P_n\sqrt. From this it follows that there are ''closed forms'': :H_n=\frac. and :P_n\sqrt2=\frac.


Paired recurrences

:H_n=\begin1&\mboxn=0;\\H_+2P_&\mbox\end :P_n=\begin0&\mboxn=0;\\H_+P_&\mbox\end


Reciprocal recurrence formulas

Let n be at least 2. :H_n=(3P_n-P_)/2=3P_+P_; :P_n=(3H_n-H_)/4=(3H_+H_)/2.


Matrix formulations

:\begin H_n \\ P_n \end = \begin 1 & 2 \\ 1 & 1 \end \begin H_ \\ P_ \end = \begin 1 & 2 \\ 1 & 1 \end^n \begin 1 \\ 0 \end. So : \begin H_n & 2P_n \\ P_n & H_n \end= \begin 1 & 2 \\ 1 & 1 \end^n .


Approximations

The difference between ''Hn'' and ''Pn'' is :\left(1-\sqrt2\right)^n \approx (-0.41421)^n, which goes rapidly to zero. So :\left(1+\sqrt2\right)^n=H_n+P_n\sqrt2\, is extremely close to 2''Hn''. From this last observation it follows that the integer ratios ' rapidly approach ; and and rapidly approach 1 + .


''H''2 − 2''P''2 = ±1

Since is irrational, we cannot have ' = , i.e., :\frac=\frac. The best we can achieve is either :\frac=\frac\quad \mbox \quad \frac=\frac. The (non-negative) solutions to are exactly the pairs with ''n'' even, and the solutions to are exactly the pairs with ''n'' odd. To see this, note first that :H_^2-2P_^2=\left(H_n+2P_n\right)^2-2\left(H_n+P_n\right)^2=-\left(H_n^2-2P_n^2\right), so that these differences, starting with , are alternately 1 and −1. Then note that every positive solution comes in this way from a solution with smaller integers since :(2P-H)^2-2(H-P)^2=-\left(H^2-2P^2\right). The smaller solution also has positive integers, with the one exception: which comes from ''H''0 = 1 and ''P''0 = 0.


Square triangular numbers

The required equation :\frac=s^2\, is equivalent to:4t^2+4t+1=8s^2+1, which becomes with the substitutions ''H'' = 2''t'' + 1 and ''P'' = 2''s''. Hence the ''n''th solution is :t_n=\frac \quad \mbox \quad s_n=\frac. Observe that ''t'' and ''t'' + 1 are relatively prime, so that  = ''s''2 happens exactly when they are adjacent integers, one a square ''H''2 and the other twice a square 2''P''2. Since we know all solutions of that equation, we also have :t_n=\begin2P_n^2&\mboxn\mbox;\\H_^2&\mboxn\mbox\end and s_n=H_nP_n. This alternate expression is seen in the next table. :


Pythagorean triples

The equality occurs exactly when which becomes with the substitutions and . Hence the ''n''th solution is and . The table above shows that, in one order or the other, ''an'' and are and while .


Notes


References

* * * * * * * * * * * * * * * * * * *


External links

* * —The numerators of the same sequence of approximations {{series (mathematics) Integer sequences Recurrence relations Unsolved problems in mathematics