Welcome to roadstat.com on July 6 2009.
This is an internet experiment running to monitor browsing habbits of individuals through wikipedia contents.

Lucas sequence

From Wikipedia, the free encyclopedia

Jump to: navigation, search

In mathematics, the Lucas sequences Un(P,Q) and Vn(P,Q) are integer sequences that satisfy the recurrence relation xn = Pxn-1 - Qxn-2 where P and Q are integers. Given integers P and Q, the recurrence relation together with initial values x0 and x1 defines a unique sequence which is a linear combination of the Lucas sequences Un(P,Q) and Vn(P,Q) defined below.

Famous examples of Lucas sequences include the Fibonacci numbers, Pell numbers, Lucas numbers and Jacobsthal numbers. Lucas sequences are named after the French mathematician Édouard Lucas.

Contents

[edit] Recurrence relations

Given two integer parameters P and Q

the Lucas sequences of the first kind Un(P,Q) and of the second kind Vn(P,Q) are defined by the recurrence relations

U_0(P,Q)=0 \, ,
U_1(P,Q)=1 \, ,
U_n(P,Q)=P\cdot U_{n-1}(P,Q)-Q\cdot U_{n-2}(P,Q) \mbox{  for }n>1 \, ,

and

V_0(P,Q)=2 \, ,
V_1(P,Q)=P \, ,
V_n(P,Q)=P\cdot V_{n-1}(P,Q)-Q\cdot V_{n-2}(P,Q) \mbox{  for }n>1 \, .

Hence Un and Vn each satisfies the recurrence relation

x_n = P x_{n-1} - Q x_{n-2}\, ,

and the most general solution to this recurrence relation is

x_n = s U_n + t V_n \, ,

where s and t are constants which are defined uniquely by the initial values x0 and x1 as follows:

x_0 = sU_0 + tV_0 = 2t \, \Rightarrow \, t = \frac{x_0}{2} \, ,
x_1 = sU_1 + tV_1 = s + Pt \, \Rightarrow \, s = x_1 - Pt = x_1 - P\frac{x_0}{2} \, .

It is not hard to show that for n > 0,

U_n=\frac{P\cdot U_{n-1}+ V_{n-1}}{2}  \, ,
V_n=\frac{(P^2-4Q)\cdot U_{n-1}+P\cdot V_{n-1}}{2}  \, .


n\, U_n\, V_n\,
0\, 0\, 2\,
1\, 1\, P\,
2\, P\, {P}^{2}-2Q\,
3\, {P}^{2}-Q\, {P}^{3}-3PQ\,
4\, {P}^{3}-2PQ\, {P}^{4}-4{P}^{2}Q+2{Q}^{2}\,
5\, {P}^{4}-3{P}^{2}Q+{Q}^{2}\, {P}^{5}-5{P}^{3}Q+5P{Q}^{2}\,
6\, {P}^{5}-4{P}^{3}Q+3P{Q}^{2}\, {P}^{6}-6{P}^{4}Q+9{P}^{2}{Q}^{2}-2{Q}^{3}\,

[edit] Algebraic relations

The characteristic equation of the recurrence relation

x_n = P x_{n-1} - Q x_{n-2} \, is:
x^2 - Px + Q=0 \,

It has the discriminant D = P2 − 4Q and the roots:

a = \frac{P+\sqrt{D}}2\quad\text{and}\quad b = \frac{P-\sqrt{D}}2. \,

Note that the sequence an and the sequence bn also satisfy the recurrence relation. However these might not be integer sequences.

[edit] Distinct roots

When D\ne 0, a and b are distinct and one quickly verifies that

a^n = \frac{V_n + U_n \sqrt{D}}{2}
b^n = \frac{V_n - U_n \sqrt{D}}{2}.


It follows that the terms of Lucas sequences can be expressed in terms of a and b as follows

U_n= \frac{a^n-b^n}{a-b} = \frac{a^n-b^n}{ \sqrt{D}}
V_n=a^n+b^n \,

[edit] Repeated root

The case D = 0 occurs exactly when P = 2S and Q = S2 for some integer S so that a = b = S. In this case one easily finds that

U_n(P,Q)=U_n(2S,S^2) = nS^{n-1}\,
V_n(P,Q)=V_n(2S,S^2)=2S^n\,.

[edit] Other relations

The numbers in Lucas sequences satisfy relations that are generalisations of the relations between Fibonacci numbers and Lucas numbers. For example:

General P=1, Q=-1
(P^2-4Q) U_n = {V_{n+1} - Q V_{n-1}}=2V_{n+1}-P V_n \, 5U_n = {V_{n+1} + V_{n-1}}=2V_{n+1} - V_{n} \,
V_n = U_{n+1} - Q U_{n-1}=2U_{n+1}-PU_n \, V_n = U_{n+1} + U_{n-1}=2U_{n+1}-U_n \,
U_{2n} = U_n V_n \, U_{2n} = U_n V_n \,
V_{2n} = V_n^2 - 2Q^n \, V_{2n} = V_n^2 - 2(-1)^n \,
U_{n+m} = U_n U_{m+1} - Q U_m U_{n-1}=\frac{U_nV_m+U_mV_n}{2} \, U_{n+m} = U_n U_{m+1} + U_m U_{n-1}=\frac{U_nV_m+U_mV_n}{2} \,
V_{n+m} = V_n V_m - Q^m V_{n-m} \, V_{n+m} = V_n V_m - (-1)^m V_{n-m} \,

Among the consequences is that Ukm is a multiple of Um so that Un can only be prime in case n is.

Another is that fast computation of Un for large values of n is possible using a kind of Exponentiation by squaring.

These two facts together allow the Lucas-Lehmer primality test.

[edit] Specific names

The Lucas sequences for some values of P and Q have specific names:

Un(1,−1) : Fibonacci numbers
Vn(1,−1) : Lucas numbers
Un(2,−1) : Pell numbers
Vn(2,−1) : Companion Pell numbers or Pell-Lucas numbers
Un(1,−2) : Jacobsthal numbers

[edit] Applications

[edit] References

Personal tools

Visit joltnews for the latest headlines
Visit bloit.com for company information
Geed Media does computer consulting on long island.
This page viewed times. See Logs