ArticleslgStudy

science

Lucas sequence

Lucas sequence is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Lucas sequence rather than just read about it. In short: In mathematics, the Lucas sequences Un(P,Q) and Vn(P,Q) are certain constant-recursive integer sequences that satisfy the recurrence relation xn=P⋅xn−1−Q⋅xn−2 where P and Q are fixed integers. Although Un(P,Q) and Vn(P,Q) satisfy the same recurrence relation, they differ on the values of their first two elements and thus differ for subsequent elements as well.

Key takeaways

  • Lucas sequence belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Lucas sequence to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Lucas sequence from memory before moving on to harder problems.

Reference excerpt

In mathematics, the Lucas sequences Un(P,Q) and Vn(P,Q) are certain constant-recursive integer sequences that satisfy the recurrence relation

xn=P⋅xn−1−Q⋅xn−2 where P and Q are fixed integers. Although Un(P,Q) and Vn(P,Q) satisfy the same recurrence relation, they differ on the values of their first two elements and thus differ for subsequent elements as well. Any sequence satisfying this recurrence relation can be represented as a linear combination of the Lucas sequences Un(P,Q) and Vn(P,Q). More generally, Lucas sequences Un(P,Q) and Vn(P,Q) represent sequences of polynomials in P and Q with integer coefficients. Famous examples of Lucas sequences include the Fibonacci numbers, Mersenne numbers, Pell numbers, Lucas numbers, Jacobsthal numbers, and a superset of Fermat numbers (see below). Lucas sequences are named after the French mathematician Édouard Lucas.

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:

U0(P,Q)=0,U1(P,Q)=1,Un(P,Q)=P⋅Un−1(P,Q)−Q⋅Un−2(P,Q) for n>1, and

V0(P,Q)=2,V1(P,Q)=P,Vn(P,Q)=P⋅Vn−1(P,Q)−Q⋅Vn−2(P,Q) for n>1. It is not hard to show that for n>0,

Un(P,Q)=P⋅Un−1(P,Q)+Vn−1(P,Q)2,Vn(P,Q)=(P2−4Q)⋅Un−1(P,Q)+P⋅Vn−1(P,Q)2. The above relations can be stated in matrix form as follows:

[Un(P,Q)Un+1(P,Q)]=[01−QP]⋅[Un−1(P,Q)Un(P,Q)],

[Vn(P,Q)Vn+1(P,Q)]=[01−QP]⋅[Vn−1(P,Q)Vn(P,Q)],

[Un(P,Q)Vn(P,Q)]=[P/21/2(P2−4Q)/2P/2]⋅[Un−1(P,Q)Vn−1(P,Q)]. Initial terms of Lucas sequences Un(P,Q) and Vn(P,Q) are given in the table:

nUn(P,Q)Vn(P,Q)00211P2PP2−2Q3P2−QP3−3PQ4P3−2PQP4−4P2Q+2Q25P4−3P2Q+Q2P5−5P3Q+5PQ26P5−4P3Q+3PQ2P6−6P4Q+9P2Q2−2Q3

Explicit expressions The characteristic equation of the recurrence relation for Lucas sequences Un(P,Q) and Vn(P,Q) is:

x2−Px+Q=0 It has the discriminant D=P2−4Q and, by the quadratic formula, has the roots:

a=P+D2andb=P−D2. Thus:

a+b=P, ab=14(P2−D)=Q, a−b=D. Note that the sequence an and the sequence bn also satisfy the recurrence relation. However these might not be integer sequences.

Distinct roots When D≠0, a and b are distinct and one quickly verifies that

an=Vn+UnD2 bn=Vn−UnD2. It follows that the terms of Lucas sequences can be expressed in terms of a and b as follows

Un=an−bna−b=an−bnD Vn=an+bn

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

Un(P,Q)=Un(2S,S2)=nSn−1 Vn(P,Q)=Vn(2S,S2)=2Sn.

Properties

Generating functions The ordinary generating functions are

∑n≥0Un(P,Q)zn=z1−Pz+Qz2; ∑n≥0Vn(P,Q)zn=2−Pz1−Pz+Qz2.

Pell equations When Q=±1, the Lucas sequences Un(P,Q) and Vn(P,Q) satisfy certain Pell equations:

Vn(P,1)2−D⋅Un(P,1)2=4, Vn(P,−1)2−D⋅Un(P,−1)2=4(−1)n.

Relations between sequences with different parameters For any number c, the sequences Un(P′,Q′) and Vn(P′,Q′) with P′=P+2c Q′=cP+Q+c2 have the same discriminant as Un(P,Q) and Vn(P,Q): P'2−4Q′=(P+2c)2−4(cP+Q+c2)=P2−4Q=D. For any number c, we also have Un(cP,c2Q)=cn−1⋅Un(P,Q), Vn(cP,c2Q)=cn⋅Vn(P,Q).

Other relations The terms of Lucas sequences satisfy relations that are generalizations of those between Fibonacci numbers Fn=Un(1,−1) and Lucas numbers Ln=Vn(1,−1). For example:

General case(P,Q)=(1,−1),D=P2−4Q=5DUn=Vn+1−QVn−1=2Vn+1−PVn5Fn=Ln+1+Ln−1=2Ln+1−Ln(1)Vn=Un+1−QUn−1=2Un+1−PUnLn=Fn+1+Fn−1=2Fn+1−Fn(2)Um+n=UnUm+1−QUmUn−1=UmVn−QnUm−nFm+n=FnFm+1+FmFn−1=FmLn−(−1)nFm−n(3)U2n=Un(Un+1−QUn−1)=UnVnF2n=Fn(Fn+1+Fn−1)=FnLn(4)U2n+1=Un+12−QUn2F2n+1=Fn+12+Fn2(5)Vm+n=VmVn−QnVm−n=DUmUn+QnVm−nLm+n=LmLn−(−1)nLm−n=5FmFn+(−1)nLm−n(6)V2n=Vn2−2Qn=DUn2+2QnL2n=Ln2−2(−1)n=5Fn2+2(−1)n(7)Um+n=UmVn+UnVm2Fm+n=FmLn+FnLm2(8)Vm+n=VmVn+DUmUn2Lm+n=LmLn+5FmFn2(9)Vn2−DUn2=4QnLn2−5Fn2=4(−1)n(10)Un2−Un−1Un+1=Qn−1Fn2−Fn−1Fn+1=(−1)n−1(11)Vn2−Vn−1Vn+1=DQn−1Ln2−Ln−1Ln+1=5(−1)n−1(12)2n−1Un=(n1)Pn−1+(n3)Pn−3D+⋯2n−1Fn=(n1)+5(n3)+⋯(13)2n−1Vn=Pn+(n2)Pn−2D+(n4)Pn−4D2+⋯2n−1Ln=1+5(n2)+52(n4)+⋯(14)

Fast computation Various analogues of exponentiation by squaring can be used to calculate Lucas sequences efficiently, in ⁠𝒪(log⁡n)⁠ operations. To simultaneously calculate Un(P,Q) and Vn(P,Q), one can use the properties (3) and (4) to perform double-and-add. Alternatively, calculate the matrix exponentiation Mn=(01−QP) to use (UnUn+1)=Mn(01) and (VnVn+1)=Mn(2P). (6) and (7) allow fast calculation of V independent of U using double-and-add. The relation Vmn=Vm(P=Vn,Q=Qn) (which belongs to the section above, "relations between sequences with different parameters") is also useful for this purpose. Another ⁠𝒪(log⁡n)⁠ method based on (3) and (6) is the Lucas chain. This method takes fewer operations than double-and-add but requires pre-calculation of chains.

Divisibility properties Among the consequences is that Ukm(P,Q) is a multiple of Um(P,Q), i.e., the sequence (Um(P,Q))m≥1 is a divisibility sequence. This implies, in particular, that Un(P,Q) can be prime only when n is prime. Moreover, if gcd⁡(P,Q)=1, then (Um(P,Q))m≥1 is a strong divisibility sequence. Other divisibility properties are as follows:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Lucas sequence

Start with the simplest possible case. Write down what Lucas sequence claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Lucas sequence before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Lucas sequence ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Lucas sequence

In research
Lucas sequence appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Lucas sequence in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Lucas sequence is common in secondary-school and first-year university syllabi. It links to neighbouring topics Integer sequences, Recurrence relations, so understanding it makes those chapters shorter.
In everyday life
Look for Lucas sequence outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Lucas sequence” →

How to study Lucas sequence in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Lucas sequence means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Lucas sequence out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Lucas sequence in simple terms?

In mathematics, the Lucas sequences Un(P,Q) and Vn(P,Q) are certain constant-recursive integer sequences that satisfy the recurrence relation xn=P⋅xn−1−Q⋅xn−2 where P and Q are fixed integers. Although Un(P,Q) and Vn(P,Q) satisfy the same recurrence relation, they differ on the values of their firs…

Why does Lucas sequence matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Lucas sequence?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Lucas sequence.

Tags

  • Integer sequences
  • Recurrence relations

Keep exploring