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,… . The Pell numbers can also be expressed by the closed form formula : For large values of ''n'', the term dominates this expression, so the Pell numbers are approximately proportional to powers of the silver ratio , analogous to the growth rate of Fibonacci numbers as powers of the golden ratio. A third definition is possible, from theApproximation 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 : then their ratio ' provides a close approximation to . 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 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 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 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 allows them to be used for accurate rational approximations to a regularPrimes 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, ... . 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 numbers.Sesskin (1962). See the square triangular number article for a more detailed derivation. 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 ''P''4''n''+1 is always a square: : 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 has integer side lengths ''a'', ''b'', ''c'' (necessarily satisfying thePell–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 The first few terms of the sequence are : 2, 2, 6, 14, 34, 82, 198,Computations and connections
The following table gives the first few powers of the silver ratio ''δ'' = ''δ''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 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 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
: : 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 ''Pn'' is : which goes rapidly to zero. So : 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., : The best we can achieve is either : 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 : 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 : 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 : is equivalent to: which becomes with the substitutions ''H'' = 2''t'' + 1 and ''P'' = 2''s''. Hence the ''n''th solution is : 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 : and 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