Pell number
Pell numbers form an integer sequence defined by the recurrence relation P_n = 2P_{n-1} + P_{n-2} for n \geq 2, with initial conditions P_0 = 0 and P_1 = 1, yielding the terms 0, 1, 2, 5, 12, 29, 70, 169, 408, 985, and so on.[1][2] These numbers arise as the companion sequence to the Pell-Lucas numbers within the broader family of Lucas sequences, specifically those parameterized by P = 2 and Q = -1, and they can also be expressed using the Fibonacci polynomials evaluated at 2, i.e., P_n = F_n(2).[1] A closed-form expression, analogous to Binet's formula for Fibonacci numbers, is given by P_n = \frac{(1 + \sqrt{2})^n - (1 - \sqrt{2})^n}{2\sqrt{2}}, which highlights their connection to the irrational number \sqrt{2}.[1][2] Named after the English mathematician John Pell (1611–1685), though the sequence was first systematically studied by Édouard Lucas in 1878, Pell numbers play a central role in solving Pell's equation x^2 - 2y^2 = \pm 1, where the solutions (x_n, y_n) satisfy x_n + y_n \sqrt{2} = (1 + \sqrt{2})^n, with y_n = P_n.[2] The denominators of the convergents in the continued fraction expansion of \sqrt{2} are precisely the Pell numbers, making them fundamental to rational approximations of this quadratic irrational.[2] Key properties include their strong divisibility—\gcd(P_m, P_n) = P_{\gcd(m,n)}—and the fact that the ratio P_n / P_{n-1} approaches $1 + \sqrt{2} as n increases, reflecting the dominant root of the characteristic equation.[2][1] Pell numbers appear in various combinatorial contexts, such as counting the number of lattice paths from (0,0) to the line x=n using steps (1,1), (1,-1), and (2,0) that do not go below the x-axis, or the number of ways to tile a cylindrical 2 × (n-1) board with dominoes.[2] They also enumerate 132-avoiding two-stack sortable permutations of length n.[2] While most Pell numbers are composite, those at prime indices can be prime, with the largest known probable prime Pell number occurring at index 90197, comprising 34,525 digits.[1] The generating function for the sequence is \frac{x}{1 - 2x - x^2}, facilitating further algebraic manipulations and identities, such as the addition formula P_{m+n} = P_{m+1} P_n + P_m P_{n-1}.[2][1]Fundamentals
Definition
The Pell numbers P_n are defined by the initial values P_0 = 0, P_1 = 1, and the recurrence relation P_n = 2 P_{n-1} + P_{n-2} for n \geq 2.[1][2] They form an infinite sequence of nonnegative integers that also arise as the denominators of the convergents in the continued fraction expansion of \sqrt{2}.[2] Although the Pell numbers are named for the 17th-century English mathematician John Pell, the underlying concepts were known to ancient Indian mathematicians as early as the 7th century through the work of Brahmagupta.[3] The naming convention stems from an erroneous attribution by Leonhard Euler, who in the mid-18th century credited Pell with earlier European contributions to the equation.[4] Euler himself provided the first explicit modern description of the sequence in his investigations of continued fractions, notably in his 1737 dissertation and subsequent 1759 paper linking them to Diophantine equations.[5] The first ten Pell numbers are listed below for illustration:| n | P_n |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 5 |
| 4 | 12 |
| 5 | 29 |
| 6 | 70 |
| 7 | 169 |
| 8 | 408 |
| 9 | 985 |
Sequence and Examples
The Pell numbers P_n are defined for nonnegative integers n by the initial values P_0 = 0, P_1 = 1, and the recurrence relation P_n = 2 P_{n-1} + P_{n-2} for n \geq 2.[1][2] To compute the first few terms, begin with P_2 = 2 \cdot 1 + 0 = 2, P_3 = 2 \cdot 2 + 1 = 5, P_4 = 2 \cdot 5 + 2 = 12, P_5 = 2 \cdot 12 + 5 = 29, and P_6 = 2 \cdot 29 + 12 = 70. This iterative addition process generates the sequence rapidly, with each term depending directly on the two preceding ones.[1] The sequence extends to negative indices using the relation P_{-n} = (-1)^{n+1} P_n for positive integers n, which preserves the recurrence relation bidirectionally.[6] For example, P_{-1} = (-1)^{2} \cdot 1 = 1, P_{-2} = (-1)^{3} \cdot 2 = -2, and P_{-3} = (-1)^{4} \cdot 5 = 5. The first 20 nonnegative Pell numbers, along with the first five negative ones for illustration, are listed below:| n | P_n |
|---|---|
| -5 | 29 |
| -4 | -12 |
| -3 | 5 |
| -2 | -2 |
| -1 | 1 |
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 5 |
| 4 | 12 |
| 5 | 29 |
| 6 | 70 |
| 7 | 169 |
| 8 | 408 |
| 9 | 985 |
| 10 | 2378 |
| 11 | 5741 |
| 12 | 13860 |
| 13 | 33461 |
| 14 | 80782 |
| 15 | 195025 |
| 16 | 470832 |
| 17 | 1136689 |
| 18 | 2744210 |
| 19 | 6625109 |