The Lucas sequence is an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci sequence. Individual numbers in the Lucas sequence are known as Lucas numbers. Lucas numbers and Fibonacci numbers form complementary instances of Lucas sequences. The Lucas sequence has the same recursive relationship as the Fibonacci sequence, where each term is the sum of the two previous terms, but with different starting values. This produces a sequence where the ratios of successive terms approach the golden ratio, and in fact the terms themselves are roundings of integer powers of the golden ratio. The sequence also has a variety of relationships with the Fibonacci numbers, like the fact that adding any two Fibonacci numbers two terms apart in the Fibonacci sequence results in the Lucas number in between. The first few Lucas numbers are
2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322, 521, 843, 1364, 2207, 3571, 5778, 9349, ... . (sequence A000032 in the OEIS) which coincides for example with the number of independent vertex sets for cyclic graphs Cn of length n≥2.
Definition As with the Fibonacci numbers, each Lucas number is defined to be the sum of its two immediately previous terms, thereby forming a Fibonacci integer sequence. The first two Lucas numbers are L0=2 and L1=1, which differs from the first two Fibonacci numbers F0=0 and F1=1. Though closely related in definition, Lucas and Fibonacci numbers exhibit distinct properties. The Lucas numbers may thus be defined as follows:
Ln:={2if n=0;1if n=1;Ln−1+Ln−2if n>1. (where n belongs to the natural numbers) All Fibonacci-like integer sequences appear in shifted form as a row of the Wythoff array; the Fibonacci sequence itself is the first row and the Lucas sequence is the second row. Also like all Fibonacci-like integer sequences, the ratio between two consecutive Lucas numbers converges to the golden ratio.
Extension to negative integers Using Ln−2=Ln−Ln−1, one can extend the Lucas numbers to negative integers to obtain a doubly infinite sequence:
..., −11, 7, −4, 3, −1, 2, 1, 3, 4, 7, 11, ... (terms Ln for −5≤n≤5 are shown). The formula for terms with negative indices in this sequence is
L−n=(−1)nLn.
Relationship to Fibonacci numbers
The Lucas numbers are related to the Fibonacci numbers by many identities. Among these are the following:
Ln=Fn+1+Fn−1=Fn+2−Fn−2. Ln+k=Ln+1Fk+LnFk−1. Fn+k=LkFn−(−1)kFn−k; in particular when k=n, F2n=LnFn. 2Fn+k=LnFk+LkFn. L2n=5Fn2+2(−1)n=Ln2−2(−1)n, so limn→∞LnFn=5. Ln−5Fn=2(−φ)n→0. Ln+k−(−1)kLn−k=5FnFk; in particular when k=1, 5Fn=Ln+1+Ln−1=2Ln+1−Ln=Ln+2Ln−1, while when k=n, the identity above for L2n is obtained. Their closed formula is given as:
Ln=φn+(1−φ)n=φn+(−φ)−n=(1+52)n+(1−52)n, where φ is the golden ratio. For n>1 the magnitude of the term (1−φ)n is less than 1/2, therefore Ln is the closest integer to φn or, equivalently, the integer part of φn+1/2, also written as ⌊φn+1/2⌋. Combining the above with Binet's formula,
Fn=φn−(1−φ)n5=φn−(−φ)−n5, a formula for φn is obtained:
φn=Ln+Fn52. For integers n ≥ 2, we also get:
φn=Ln−(1−φ)n=Ln−(−1)nLn−1−Ln−3+R with remainder R satisfying
|R|<3Ln−5.
Lucas identities Many of the Fibonacci identities have parallels in Lucas numbers. For example, the Cassini identity becomes
Ln2−Ln−1Ln+1=(−1)n5 Also
∑k=0nLk=Ln+2−1 ∑k=0nLk2=LnLn+1+2 2Ln−12+Ln2=L2n+1+5Fn−22 where Fn=Ln−1+Ln+15.
Lnk=∑j=0⌊k2⌋(−1)nj(kj)L'(k−2j)n where L'n=Ln except for L'0=1. For example if n is odd, Ln3=L'3n−3L'n and Ln4=L'4n−4L'2n+6L'0 Checking, L3=4,43=64=76−3(4), and 256=322−4(18)+6
Generating function The ordinary generating function of the sequence of Lucas numbers is the power series Φ(x)=∑k=0∞Lkxk=2+x+3x2+4x3+7x4+11x5+⋯. This series is convergent for any complex number x satisfying |x|<1/φ≈0.618, and its sum has a simple closed form: Φ(x)=2−x1−x−x2. This can be proved by multiplying by (1−x−x2): (1−x−x2)Φ(x)=∑k=0∞Lkxk−∑k=0∞Lkxk+1−∑k=0∞Lkxk+2=∑k=0∞Lkxk−∑k=1∞Lk−1xk−∑k=2∞Lk−2xk=2x0+1x1−2x1+∑k=2∞(Lk−Lk−1−Lk−2)xk=2−x, where all terms involving xk for k≥2 cancel out because of the defining Lucas numbers recurrence relation. Φ(−1x) gives the generating function for the negative indexed Lucas numbers, ∑n=0∞(−1)nLnx−n=∑n=0∞L−nx−n, and
Φ(−1x)=x+2x21−x−x2 Φ(x) satisfies the functional equation
Φ(x)−Φ(−1x)=2 As the generating function for the Fibonacci numbers is given by
s(x)=x1−x−x2 we have
s(x)+Φ(x)=21−x−x2 which proves that
Fn+Ln=2Fn+1, and
5s(x)+Φ(x)=2xΦ(−1x)=211−x−x2+4x1−x−x2 proves that
5Fn+Ln=2Ln+1 The partial fraction decomposition is given by
Φ(x)=11−ϕx+11−ψx where ϕ=1+52 is the golden ratio and ψ=1−52 is its conjugate. This can be used to prove the generating function, as
∑n=0∞Lnxn=∑n=0∞(ϕn+ψn)xn=∑n=0∞ϕnxn+∑n=0∞ψnxn=11−ϕx+11−ψx=Φ(x) Using x equal to any of 0.01, 0.001, 0.0001, etc. lays out the first Lucas numbers in the decimal expansion of Φ(x). For example, Φ(0.001)=1.9990.998999=1999000998999=2.001003004007011018029047….
Congruence relations If Fn≥5 is a Fibonacci number then no Lucas number is divisible by Fn. The Lucas numbers satisfy Gauss congruence. This implies that Ln is congruent to 1 modulo n if n is prime. The composite values of n which satisfy this property are known as Fibonacci pseudoprimes. Ln−Ln−4 is congruent to 0 modulo 5.
Relationships with prime numbers A Lucas prime is a Lucas number that is prime. The first few Lucas primes are
2, 3, 7, 11, 29, 47, 199, 521, 2207, 3571, 9349, 3010349, 54018521, 370248451, 6643838879, ... (sequence A005479 in the OEIS). As of September 2015, the largest confirmed Lucas prime is L148091, which has 30950 decimal digits. As of August 2022, the largest known Lucas probable prime is L5466311, with 1,142,392 decimal digits. If Ln is prime then n is 0, prime, or a power of 2. L2m is prime for m = 1, 2, 3, and 4 and no other known values of m. Every prime number divides some Fibonacci number. By contrast, there are infinitely many primes that do not divide any Lucas number. More precisely, the set of primes that divides at least one Lucas number has natural density 2/3 relative to the set of all primes, so that 1/3 of all prime numbers do not divide any Lucas number.
Lucas polynomials In the same way as Fibonacci polynomials are derived from the Fibonacci numbers, the Lucas polynomials Ln(x) are a polynomial sequence derived from the Lucas numbers.
… excerpt ends here. Continue reading the full article.


