Yogyakarta, CIMPA School UGM, February 27, 2020
Linear recurrence sequences,
Michel Waldschmidt
Sorbonne University, Paris
Institut de Math´ ematiques de Jussieu
http://www.imj-prg.fr/~michel.waldschmidt/
Abstract
Linear recurrence sequences are ubiquitous. They occur in biology, economics, computer science (analysis of algorithms), digital signal processing and number theory. We give a survey of this subject, together with connections with linear
combinations of powers, with powers of matrices and with linear differential equations.
We first work over a field of any characteristic. Next we
consider linear recurrence sequences over finite fields.
Applications of linear recurrence sequences
Combinatorics Elimination
Symmetric functions Hypergeometric series Language
Communication, shift registers Finite difference equations Logic
Approximation
Pseudo–random sequences
Applications of linear recurrence sequences
• Biology (Integrodifference equations, spatial ecology).
• Computer science (analysis of algorithms).
• Digital signal processing (infinite impulse response (IIR) digital filters).
• Economics (time series analysis).
https://en.wikipedia.org/wiki/Recurrence_relation
Linear recurrence sequences : definitions
A linear recurrence sequence is a sequence of numbers u = (u
0, u
1, u
2, . . . ) for which there exist a positive integer d together with numbers a
1, . . . , a
dwith a
d6= 0 such that, for n ≥ 0,
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n.
Here, a number means an element of a field K .
Given a = (a
1, . . . , a
d) ∈ K
d, the set E
aof linear recurrence sequences u = (u
n)
n≥0satisfying (?) is a K –vector subspace of dimension d of the space K
Nof all sequences.
A basis of this space is obtained by taking for the initial d
values (u
0, u
1, . . . , u
d−1) the elements of the canonical basis of
K
d.
Linear recurrence sequences : definitions
A linear recurrence sequence is a sequence of numbers u = (u
0, u
1, u
2, . . . ) for which there exist a positive integer d together with numbers a
1, . . . , a
dwith a
d6= 0 such that, for n ≥ 0,
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n.
Here, a number means an element of a field K .
Given a = (a
1, . . . , a
d) ∈ K
d, the set E
aof linear recurrence sequences u = (u
n)
n≥0satisfying (?) is a K –vector subspace of dimension d of the space K
Nof all sequences.
A basis of this space is obtained by taking for the initial d
values (u
0, u
1, . . . , u
d−1) the elements of the canonical basis of
K
d.
Linear recurrence sequences : definitions
A linear recurrence sequence is a sequence of numbers u = (u
0, u
1, u
2, . . . ) for which there exist a positive integer d together with numbers a
1, . . . , a
dwith a
d6= 0 such that, for n ≥ 0,
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n.
Here, a number means an element of a field K .
Given a = (a
1, . . . , a
d) ∈ K
d, the set E
aof linear recurrence sequences u = (u
n)
n≥0satisfying (?) is a K –vector subspace of dimension d of the space K
Nof all sequences.
A basis of this space is obtained by taking for the initial d
values (u
0, u
1, . . . , u
d−1) the elements of the canonical basis of
K
d.
Linear recurrence sequences : definitions
A linear recurrence sequence is a sequence of numbers u = (u
0, u
1, u
2, . . . ) for which there exist a positive integer d together with numbers a
1, . . . , a
dwith a
d6= 0 such that, for n ≥ 0,
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n.
Here, a number means an element of a field K .
Given a = (a
1, . . . , a
d) ∈ K
d, the set E
aof linear recurrence sequences u = (u
n)
n≥0satisfying (?) is a K –vector subspace of dimension d of the space K
Nof all sequences.
A basis of this space is obtained by taking for the initial d
values (u
0, u
1, . . . , u
d−1) the elements of the canonical basis of
K
d.
Generating series, characteristic polynomial
The generating series is the formal series X
n≥0
u
nX
n.
Let γ ∈ K
×; the sequence (γ
n)
n≥0satisfies the linear recurrence
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n. if and only if γ
d= a
1γ
d−1+ · · · + a
d.
The characteristic (or companion) polynomial of the linear recurrence is
f(X) = X
d− a
1X
d−1− · · · − a
d.
Recall that 0 is not a root of this polynomial (a
d6= 0).
Generating series, characteristic polynomial
The generating series is the formal series X
n≥0
u
nX
n.
Let γ ∈ K
×; the sequence (γ
n)
n≥0satisfies the linear recurrence
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n. if and only if γ
d= a
1γ
d−1+ · · · + a
d.
The characteristic (or companion) polynomial of the linear recurrence is
f(X) = X
d− a
1X
d−1− · · · − a
d.
Recall that 0 is not a root of this polynomial (a
d6= 0).
Generating series, characteristic polynomial
The generating series is the formal series X
n≥0
u
nX
n.
Let γ ∈ K
×; the sequence (γ
n)
n≥0satisfies the linear recurrence
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n. if and only if γ
d= a
1γ
d−1+ · · · + a
d.
The characteristic (or companion) polynomial of the linear recurrence is
f(X) = X
d− a
1X
d−1− · · · − a
d.
Recall that 0 is not a root of this polynomial (a
d6= 0).
Linear recurrence sequences : examples
• Constant sequence : u
n= u
0.
Linear recurrence sequence of order 1 : u
n+1= u
n. Characteristic polynomial : f (X) = X − 1.
Generating series : X
n≥0
u
0X
n= u
01 − X ·
• Geometric progression : u
n= u
0γ
n.
Linear recurrence sequence of order 1 : u
n= γu
n−1. Characteristic polynomial f(X) = X − γ.
Generating series : X
n≥0
u
0γ
nX
n= u
01 − γX ·
Linear recurrence sequences : examples
• Constant sequence : u
n= u
0.
Linear recurrence sequence of order 1 : u
n+1= u
n. Characteristic polynomial : f (X) = X − 1.
Generating series : X
n≥0
u
0X
n= u
01 − X ·
• Geometric progression : u
n= u
0γ
n.
Linear recurrence sequence of order 1 : u
n= γu
n−1. Characteristic polynomial f(X) = X − γ.
Generating series : X
n≥0
u
0γ
nX
n= u
01 − γX ·
Linear recurrence sequences : examples
• u
n= n. This is a linear recurrence sequence of order 2 : n + 2 = 2(n + 1) − n.
Characteristic polynomial
f (X) = X
2− 2X + 1 = (X − 1)
2.
Generating series X
n≥0
nX
n= 1
1 − 2X + X
2· Power of matrices :
0 1
−1 2
n=
−n + 1 n
−n n + 1
.
Linear recurrence sequences : examples
• u
n= p(n), where p is a polynomial of degree d. This is a linear recurrence sequence of order d + 1.
Proof. The sequences
(p(n))
n≥0, (p(n + 1))
n≥0, · · · , (p(n + k))
n≥0are K –linearly independent in K
Nfor k = d − 1 and linearly dependent for k = d.
A basis of the space of polynomials of degree d is given by the d + 1 polynomials
p(X), p(X + 1), . . . , p(X + d).
Question : which is the characteristic polynomial ?
Linear recurrence sequences : examples
• u
n= p(n), where p is a polynomial of degree d. This is a linear recurrence sequence of order d + 1.
Proof. The sequences
(p(n))
n≥0, (p(n + 1))
n≥0, · · · , (p(n + k))
n≥0are K –linearly independent in K
Nfor k = d − 1 and linearly dependent for k = d.
A basis of the space of polynomials of degree d is given by the d + 1 polynomials
p(X), p(X + 1), . . . , p(X + d).
Question : which is the characteristic polynomial ?
Linear recurrence sequences : examples
• u
n= p(n), where p is a polynomial of degree d. This is a linear recurrence sequence of order d + 1.
Proof. The sequences
(p(n))
n≥0, (p(n + 1))
n≥0, · · · , (p(n + k))
n≥0are K –linearly independent in K
Nfor k = d − 1 and linearly dependent for k = d.
A basis of the space of polynomials of degree d is given by the d + 1 polynomials
p(X), p(X + 1), . . . , p(X + d).
Question : which is the characteristic polynomial ?
Linear sequences which are ultimately recurrent
The sequence
(1, 0, 0, . . . ) is not a linear recurrence sequence.
The condition
u
n+1= u
nis satisfied only for n ≥ 1.
The relation
u
n+2= u
n+1+ 0u
nwith d = 2, a
d= 0 does not fulfil the requirement a
d6= 0.
Linear sequences which are ultimately recurrent
The sequence
(1, 0, 0, . . . ) is not a linear recurrence sequence.
The condition
u
n+1= u
nis satisfied only for n ≥ 1.
The relation
u
n+2= u
n+1+ 0u
nwith d = 2, a
d= 0 does not fulfil the requirement a
d6= 0.
Linear sequences which are ultimately recurrent
The sequence
(1, 0, 0, . . . ) is not a linear recurrence sequence.
The condition
u
n+1= u
nis satisfied only for n ≥ 1.
The relation
u
n+2= u
n+1+ 0u
nwith d = 2, a
d= 0 does not fulfil the requirement a
d6= 0.
Order of a linear recurrence sequence
If u = (u
n)
n≥0satisfies the linear recurrence, the characteristic polynomial of which is f, then, for any monic polynomial g ∈ K [X] with g(0) 6= 0, this sequence u also satisfies the linear recurrence, the characteristic polynomial of which is f g.
Example : for g(X) = X − γ with γ 6= 0, from (?) u
n+d−a
1u
n+d−1−· · ·−a
du
n= 0 we deduce
u
n+d+1− a
1u
n+d− · · · − a
du
n+1− γ(u
n+d− a
1u
n+d−1− · · · − a
du
n) = 0.
The order of a linear recurrence sequence is the smallest d
such that (?) holds for all n ≥ 0.
Order of a linear recurrence sequence
If u = (u
n)
n≥0satisfies the linear recurrence, the characteristic polynomial of which is f, then, for any monic polynomial g ∈ K [X] with g(0) 6= 0, this sequence u also satisfies the linear recurrence, the characteristic polynomial of which is f g.
Example : for g(X) = X − γ with γ 6= 0, from (?) u
n+d−a
1u
n+d−1−· · ·−a
du
n= 0 we deduce
u
n+d+1− a
1u
n+d− · · · − a
du
n+1− γ(u
n+d− a
1u
n+d−1− · · · − a
du
n) = 0.
The order of a linear recurrence sequence is the smallest d
such that (?) holds for all n ≥ 0.
Generating series of a linear recurrence sequence
Let u = (u
n)
n≥0be a linear recurrence sequence
(?) u
n+d= a
1u
n+d−1+· · ·+a
du
nfor n ≥ 0 with characteristic polynomial
f(X) = X
d− a
1X
d−1− · · · − a
d. Denote by f
−the reciprocal polynomial of f :
f
−(X) = X
df (X
−1) = 1 − a
1X − · · · − a
dX
d.
Then
∞X
n=0
u
nX
n= r(X) f
−(X) ,
where r is a polynomial of degree less than d determined by
the initial values of u.
Generating series of a linear recurrence sequence
Assume
u
n+d= a
1u
n+d−1+ · · · + a
du
nfor n ≥ 0.
Then
∞X
n=0
u
nX
n= r(X) f
−(X) ·
Proof. Comparing the coefficients of X
nfor n ≥ d shows that f
−(X)
∞
X
n=0
u
nX
nis a polynomial of degree less than d.
Generating series of a linear recurrence sequence
Assume
u
n+d= a
1u
n+d−1+ · · · + a
du
nfor n ≥ 0.
Then
∞X
n=0
u
nX
n= r(X) f
−(X) ·
Proof. Comparing the coefficients of X
nfor n ≥ d shows that f
−(X)
∞
X
n=0
u
nX
nis a polynomial of degree less than d.
Taylor coefficients of rational functions
Conversely, the sequence of coefficients in the Taylor expansion of any rational fraction a(X)/b(X) with deg a < deg b and b(0) 6= 0 satisfies the recurrence relation with characteristic polynomial f ∈ K[X] given by f (X) = b
−(X).
Therefore a sequence u = (u
n)
n≥0satisfies the recurrence relation (?) with characteristic polynomial f ∈ K[X] if and only if
∞
X
n=0
u
nX
n= r(X) f
−(X) ,
where r is a polynomial of degree less than d determined by
the initial values of u.
Taylor coefficients of rational functions
Conversely, the sequence of coefficients in the Taylor expansion of any rational fraction a(X)/b(X) with deg a < deg b and b(0) 6= 0 satisfies the recurrence relation with characteristic polynomial f ∈ K[X] given by f (X) = b
−(X).
Therefore a sequence u = (u
n)
n≥0satisfies the recurrence relation (?) with characteristic polynomial f ∈ K[X] if and only if
∞
X
n=0
u
nX
n= r(X) f
−(X) ,
where r is a polynomial of degree less than d determined by
the initial values of u.
Linear differential equations
Given a sequence (u
n)
n≥0of numbers, its exponential generating power series is
ψ(z) = X
n≥0
u
nz
nn! ·
For k ≥ 0, the k-the derivative ψ
(k)of ψ satisfies ψ
(k)(z) = X
n≥0
u
n+kz
nn! ·
Hence the sequence satisfies the linear recurrence relation (?) u
n+d= a
1u
n+d−1+· · ·+a
du
nfor n ≥ 0 if and only if ψ is a solution of the homogeneous linear differential equation
y
(d)= a
1y
(d−1)+ · · · + a
d−1y
0+ a
dy.
Linear differential equations
Given a sequence (u
n)
n≥0of numbers, its exponential generating power series is
ψ(z) = X
n≥0
u
nz
nn! ·
For k ≥ 0, the k-the derivative ψ
(k)of ψ satisfies ψ
(k)(z) = X
n≥0
u
n+kz
nn! ·
Hence the sequence satisfies the linear recurrence relation (?) u
n+d= a
1u
n+d−1+· · ·+a
du
nfor n ≥ 0 if and only if ψ is a solution of the homogeneous linear differential equation
y
(d)= a
1y
(d−1)+ · · · + a
d−1y
0+ a
dy.
Linear differential equations
Given a sequence (u
n)
n≥0of numbers, its exponential generating power series is
ψ(z) = X
n≥0
u
nz
nn! ·
For k ≥ 0, the k-the derivative ψ
(k)of ψ satisfies ψ
(k)(z) = X
n≥0
u
n+kz
nn! ·
Hence the sequence satisfies the linear recurrence relation (?) u
n+d= a
1u
n+d−1+· · ·+a
du
nfor n ≥ 0 if and only if ψ is a solution of the homogeneous linear differential equation
y
(d)= a
1y
(d−1)+ · · · + a
d−1y
0+ a
dy.
Matrix notation for a linear recurrence sequence
The linear recurrence sequence
(?) u
n+d= a
1u
n+d−1+· · ·+a
du
nfor n ≥ 0 can be written
u
n+1u
n+2.. . u
n+d
=
0 1 0 · · · 0
0 0 1 · · · 0
.. . .. . .. . . .. ...
0 0 0 · · · 1
a
da
d−1a
d−2· · · a
1
u
nu
n+1.. . u
n+d−1
.
Matrix notation for a linear recurrence sequence
U
n+1= AU
nwith
U
n=
u
nu
n+1.. . u
n+d−1
, A =
0 1 0 · · · 0
0 0 1 · · · 0
.. . .. . .. . . .. ...
0 0 0 · · · 1
a
da
d−1a
d−2· · · a
1
.
The determinant of I
dX − A (the characteristic polynomial of A) is nothing but
f(X) = X
d− a
1X
d−1− · · · − a
d,
the characteristic polynomial of the linear recurrence sequence.
By induction
U
n= A
nU
0.
Matrix notation for a linear recurrence sequence
U
n+1= AU
nwith
U
n=
u
nu
n+1.. . u
n+d−1
, A =
0 1 0 · · · 0
0 0 1 · · · 0
.. . .. . .. . . .. ...
0 0 0 · · · 1
a
da
d−1a
d−2· · · a
1
.
The determinant of I
dX − A (the characteristic polynomial of A) is nothing but
f(X) = X
d− a
1X
d−1− · · · − a
d,
the characteristic polynomial of the linear recurrence sequence.
By induction
U
n= A
nU
0.
Matrix notation for a linear recurrence sequence
U
n+1= AU
nwith
U
n=
u
nu
n+1.. . u
n+d−1
, A =
0 1 0 · · · 0
0 0 1 · · · 0
.. . .. . .. . . .. ...
0 0 0 · · · 1
a
da
d−1a
d−2· · · a
1
.
The determinant of I
dX − A (the characteristic polynomial of A) is nothing but
f(X) = X
d− a
1X
d−1− · · · − a
d,
the characteristic polynomial of the linear recurrence sequence.
By induction
U
n= A
nU
0.
Powers of matrices
Let A = (a
ij)
1≤i,j≤d∈ GL
d×d( K ) be a d × d matrix with coefficients in K and nonzero determinant. For n ≥ 0, define
A
n= a
(n)ij1≤i,j≤d
. Then each of the d
2sequences a
(n)ijn≥0
, (1 ≤ i, j ≤ d) is a linear recurrence sequence. The roots of the characteristic polynomial of these linear recurrences are the eigenvalues of A.
In particular the sequence Tr(A
n)
n≥0
satisfies the linear
recurrence, the characteristic polynomial of which is the
characteristic polynomial of the matrix A.
Powers of matrices
Let A = (a
ij)
1≤i,j≤d∈ GL
d×d( K ) be a d × d matrix with coefficients in K and nonzero determinant. For n ≥ 0, define
A
n= a
(n)ij1≤i,j≤d
. Then each of the d
2sequences a
(n)ijn≥0
, (1 ≤ i, j ≤ d) is a linear recurrence sequence. The roots of the characteristic polynomial of these linear recurrences are the eigenvalues of A.
In particular the sequence Tr(A
n)
n≥0
satisfies the linear
recurrence, the characteristic polynomial of which is the
characteristic polynomial of the matrix A.
Powers of matrices
Let A = (a
ij)
1≤i,j≤d∈ GL
d×d( K ) be a d × d matrix with coefficients in K and nonzero determinant. For n ≥ 0, define
A
n= a
(n)ij1≤i,j≤d
. Then each of the d
2sequences a
(n)ijn≥0
, (1 ≤ i, j ≤ d) is a linear recurrence sequence. The roots of the characteristic polynomial of these linear recurrences are the eigenvalues of A.
In particular the sequence Tr(A
n)
n≥0
satisfies the linear
recurrence, the characteristic polynomial of which is the
characteristic polynomial of the matrix A.
Conversely :
Given a linear recurrence sequence u ∈ K
N, there exist an integer d ≥ 1 and a matrix A ∈ GL
d( K ) such that, for each n ≥ 0,
u
n= a
(n)11.
The characteristic polynomial of A is the characteristic polynomial of the linear recurrence sequence.
Everest G., van der Poorten A., Shparlinski I., Ward T. –
Recurrence sequences, Mathematical Surveys and Monographs (AMS,
2003), volume 104.
Conversely :
Given a linear recurrence sequence u ∈ K
N, there exist an integer d ≥ 1 and a matrix A ∈ GL
d( K ) such that, for each n ≥ 0,
u
n= a
(n)11.
The characteristic polynomial of A is the characteristic polynomial of the linear recurrence sequence.
Everest G., van der Poorten A., Shparlinski I., Ward T. –
Recurrence sequences, Mathematical Surveys and Monographs (AMS,
2003), volume 104.
Linear recurrence sequences : simple roots
A basis of E
aover K is obtained by attributing to the initial values u
0, . . . , u
d−1the values given by the canonical basis of K
d.
Given γ in K
×, a necessary and sufficient condition for a sequence (γ
n)
n≥0to satisfy (?) is that γ is a root of the characteristic polynomial
f(X) = X
d− a
1X
d−1− · · · − a
d.
If this polynomial has d distinct roots γ
1, . . . , γ
din K ,
f (X) = (X − γ
1) · · · (X − γ
d), γ
i6= γ
j,
then a basis of E
aover K is given by the d sequences
(γ
in)
n≥0, i = 1, . . . , d.
Linear recurrence sequences : simple roots
A basis of E
aover K is obtained by attributing to the initial values u
0, . . . , u
d−1the values given by the canonical basis of K
d.
Given γ in K
×, a necessary and sufficient condition for a sequence (γ
n)
n≥0to satisfy (?) is that γ is a root of the characteristic polynomial
f(X) = X
d− a
1X
d−1− · · · − a
d.
If this polynomial has d distinct roots γ
1, . . . , γ
din K ,
f (X) = (X − γ
1) · · · (X − γ
d), γ
i6= γ
j,
then a basis of E
aover K is given by the d sequences
(γ
in)
n≥0, i = 1, . . . , d.
Linear recurrence sequences : simple roots
A basis of E
aover K is obtained by attributing to the initial values u
0, . . . , u
d−1the values given by the canonical basis of K
d.
Given γ in K
×, a necessary and sufficient condition for a sequence (γ
n)
n≥0to satisfy (?) is that γ is a root of the characteristic polynomial
f(X) = X
d− a
1X
d−1− · · · − a
d.
If this polynomial has d distinct roots γ
1, . . . , γ
din K ,
f (X) = (X − γ
1) · · · (X − γ
d), γ
i6= γ
j,
then a basis of E
aover K is given by the d sequences
(γ
in)
n≥0, i = 1, . . . , d.
Linear recurrence sequences : double roots
The characteristic polynomial of the linear recurrence
u
n= 2γu
n−1− γ
2u
n−2is X
2− 2γX + γ
2= (X − γ )
2with a double root γ.
The sequence (nγ
n)
n≥0satisfies
nγ
n= 2γ(n − 1)nγ
n−1− γ
2(n − 2)γ
n−2.
A basis of E
afor a
1= 2γ , a
2= −γ
2is given by the two sequences (γ
n)
n≥0, (nγ
n)
n≥0.
Given γ ∈ K
×, a necessary and sufficient condition for the
sequence nγ
nto satisfy the linear recurrence relation (?) is
that γ is a root of multiplicity ≥ 2 of f(X).
Linear recurrence sequences : double roots
The characteristic polynomial of the linear recurrence
u
n= 2γu
n−1− γ
2u
n−2is X
2− 2γX + γ
2= (X − γ )
2with a double root γ.
The sequence (nγ
n)
n≥0satisfies
nγ
n= 2γ(n − 1)nγ
n−1− γ
2(n − 2)γ
n−2.
A basis of E
afor a
1= 2γ , a
2= −γ
2is given by the two sequences (γ
n)
n≥0, (nγ
n)
n≥0.
Given γ ∈ K
×, a necessary and sufficient condition for the
sequence nγ
nto satisfy the linear recurrence relation (?) is
that γ is a root of multiplicity ≥ 2 of f(X).
Linear recurrence sequences : double roots
The characteristic polynomial of the linear recurrence
u
n= 2γu
n−1− γ
2u
n−2is X
2− 2γX + γ
2= (X − γ )
2with a double root γ.
The sequence (nγ
n)
n≥0satisfies
nγ
n= 2γ(n − 1)nγ
n−1− γ
2(n − 2)γ
n−2.
A basis of E
afor a
1= 2γ , a
2= −γ
2is given by the two sequences (γ
n)
n≥0, (nγ
n)
n≥0.
Given γ ∈ K
×, a necessary and sufficient condition for the
sequence nγ
nto satisfy the linear recurrence relation (?) is
that γ is a root of multiplicity ≥ 2 of f(X).
Linear recurrence sequences : double roots
The characteristic polynomial of the linear recurrence
u
n= 2γu
n−1− γ
2u
n−2is X
2− 2γX + γ
2= (X − γ )
2with a double root γ.
The sequence (nγ
n)
n≥0satisfies
nγ
n= 2γ(n − 1)nγ
n−1− γ
2(n − 2)γ
n−2.
A basis of E
afor a
1= 2γ , a
2= −γ
2is given by the two sequences (γ
n)
n≥0, (nγ
n)
n≥0.
Given γ ∈ K
×, a necessary and sufficient condition for the
sequence nγ
nto satisfy the linear recurrence relation (?) is
that γ is a root of multiplicity ≥ 2 of f(X).
Linear recurrence sequences : multiple roots
In general, when the characteristic polynomial splits as X
d− a
1X
d−1− · · · − a
d=
`
Y
i=1
(X − γ
i)
ti,
a basis of E
ais given by the d sequences
(n
kγ
in)
n≥0, 0 ≤ k ≤ t
i− 1, 1 ≤ i ≤ `.
Polynomial combinations of powers
The sum and the product of any two linear recurrence sequences are linear recurrence sequences.
The set ∪
aE
aof all linear recurrence sequences with coefficients in K is a sub– K –algebra of K
N.
Given polynomials p
1, . . . , p
`in K [X] and elements γ
1, . . . , γ
`in K
×, the sequence
p
1(n)γ
1n+ · · · + p
`(n)γ
n`n≥0
is a linear recurrence sequence.
Conversely, any linear recurrence sequence is of this form.
Polynomial combinations of powers
The sum and the product of any two linear recurrence sequences are linear recurrence sequences.
The set ∪
aE
aof all linear recurrence sequences with coefficients in K is a sub– K –algebra of K
N.
Given polynomials p
1, . . . , p
`in K [X] and elements γ
1, . . . , γ
`in K
×, the sequence
p
1(n)γ
1n+ · · · + p
`(n)γ
n`n≥0
is a linear recurrence sequence.
Conversely, any linear recurrence sequence is of this form.
Polynomial combinations of powers
The sum and the product of any two linear recurrence sequences are linear recurrence sequences.
The set ∪
aE
aof all linear recurrence sequences with coefficients in K is a sub– K –algebra of K
N.
Given polynomials p
1, . . . , p
`in K [X] and elements γ
1, . . . , γ
`in K
×, the sequence
p
1(n)γ
1n+ · · · + p
`(n)γ
n`n≥0
is a linear recurrence sequence.
Conversely, any linear recurrence sequence is of this form.
Polynomial combinations of powers
The sum and the product of any two linear recurrence sequences are linear recurrence sequences.
The set ∪
aE
aof all linear recurrence sequences with coefficients in K is a sub– K –algebra of K
N.
Given polynomials p
1, . . . , p
`in K [X] and elements γ
1, . . . , γ
`in K
×, the sequence
p
1(n)γ
1n+ · · · + p
`(n)γ
n`n≥0
is a linear recurrence sequence.
Conversely, any linear recurrence sequence is of this form.
Consequence
• When p is a polynomial of degree < d, the characteristic polynomial of the sequence u
n= p(n) divides (X − 1)
d. Proof.
Set
A =
1 1 0 · · · 0 0 0 1 1 · · · 0 0 0 0 1 · · · 0 0 .. . .. . .. . . .. ... ...
0 0 0 · · · 1 1 0 0 0 · · · 0 1
= I
d+ N
where I
dis the d × d identity matrix and N is nilpotent :
N
d= 0.
Consequence
The characteristic polynomial of A is (X − 1)
d. Hence for 1 ≤ i, j ≤ d, the sequence u
nof the coefficient a
(n)ijof A
nsatisfies the linear recurrence relation
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n, that is
u
n+d= du
n+d−1− d
2
u
n+d−2+· · ·+(−1)
d−2du
n+1+(−1)
d−1u
n.
The characteristic polynomial of this recurrence relation is
(X − 1)
d.
Characteristic polynomial of the recurrence sequence p(n).
Since, for 1 ≤ i, j ≤ d and n ≥ 0, we have a
(n)ij=
n j − i
(where we agree that
nk= 0 for k < 0 and for k > n, while
d 0
=
dd= 1), we deduce that each of the d polynomials 1, X(X + 1) · · · (X + k − 1)
k! k = 1, 2, . . . , d − 1 namely
1, X, X(X + 1)
2 , . . . , X(X + 1) · · · (X + d − 2)
(d − 1)! ,
satisfies the recurrence (?). These d polynomials constitute a
basis of the space of polynomials of degree < d.
Sum of polynomial combinations of powers
If u
1and u
2are two linear recurrence sequences of characteristic polynomials f
1and f
2respectively, then u
1+ u
2satisfies the linear recurrence, the characteristic polynomial of which is
f
1f
2gcd(f
1, f
2) ·
Product of polynomial combinations of powers
If the characteristic polynomials of the two linear recurrence sequences u
1and u
2are respectively
f
1(T ) =
`
Y
j=1
(T − γ
j)
tjand f
2(T ) =
`0
Y
k=1
(T − γ
k0)
t0k,
then u
1u
2satisfies the linear recurrence, the characteristic polynomial of which is
`
Y
j=1
`0
Y
k=1
(T − γ
jγ
k0)
tj+t0k−1.
Linear recurrence sequences and Brahmagupta–Pell–Fermat Equation
Let d be a positive integer, not a square. The solutions (x, y) ∈ Z × Z of the Brahmagupta–Pell–Fermat Equation
x
2− dy
2= ±1 form a sequence (x
n, y
n)
n∈Zdefined by
x
n+ √
dy
n= (x
1+ √ dy
1)
n. From
2x
n= (x
1+ √
dy
1)
n+ (x
1− √ dy
1)
nwe deduce that (x
n)
n≥0is a linear recurrence sequence. Same
for y
n, and also for n ≤ 0.
Linear recurrence sequences and Brahmagupta–Pell–Fermat Equation
Let d be a positive integer, not a square. The solutions (x, y) ∈ Z × Z of the Brahmagupta–Pell–Fermat Equation
x
2− dy
2= ±1 form a sequence (x
n, y
n)
n∈Zdefined by
x
n+ √
dy
n= (x
1+ √ dy
1)
n. From
2x
n= (x
1+ √
dy
1)
n+ (x
1− √ dy
1)
nwe deduce that (x
n)
n≥0is a linear recurrence sequence. Same
for y
n, and also for n ≤ 0.
Doubly infinite linear recurrence sequences
A sequence (u
n)
n∈Zindexed by Z is a linear recurrence sequence if it satisfies
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n. for all n ∈ Z .
Recall a
d6= 0.
Such a sequence is determined by d consecutive values.
Doubly infinite linear recurrence sequences
A sequence (u
n)
n∈Zindexed by Z is a linear recurrence sequence if it satisfies
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n. for all n ∈ Z .
Recall a
d6= 0.
Such a sequence is determined by d consecutive values.
Doubly infinite linear recurrence sequences
A sequence (u
n)
n∈Zindexed by Z is a linear recurrence sequence if it satisfies
(?) u
n+d= a
1u
n+d−1+ · · · + a
du
n. for all n ∈ Z .
Recall a
d6= 0.
Such a sequence is determined by d consecutive values.
Discrete version of linear differential equations
A sequence u ∈ K
Ncan be viewed as a linear map N −→ K . Define the discrete derivative D by
Du : N −→ K
n 7−→ u
n+1− u
n.
A sequence u ∈ K
Nis a linear recurrence sequence if and only if there exists Q ∈ K [T ] with Q(1) 6= 1 such that
Q(D)u = 0.
Linear recurrence sequences are a discrete version of linear differential equations with constant coefficients.
The condition Q(1) 6= 0 reflects a
d6= 0 – otherwise one gets ultimately
recurrent sequences.
Conclusion
The same mathematical object occurs in a different guise :
• Linear recurrence sequences
u
n+d= a
1u
n+d−1+ · · · + a
du
n.
• Linear combinations with polynomial coefficients of powers p
1(n)γ
1n+ · · · + p
`(n)γ
`n.
• Taylor coefficients of rational functions.
• Coefficients of power series which are solutions of homogeneous linear differential equations.
• Sequence of coefficients of powers of a matrix.
Reference
Everest, Graham ; van der Poorten, Alf ; Shparlinski, Igor ; Ward, Tom – Recurrence sequences, Mathematical Surveys and Monographs (AMS,
2003), volume 104. 1290 references.
Graham Everest Alf van der Poorten
Igor Shparlinski Tom Ward
Linear recurrence sequences over finite fields
Reference: Chapter 8 : Linear recurring sequences of Lidl, Rudolf ; Niederreiter, Harald.
Finite fields. Paperback reprint of the hardback 2nd edition 1996. (English)
Encyclopedia of Mathematics and Its Applications 20.
Cambridge University Press (ISBN 978-0-521-06567-2/pbk).
xiv, 755 p. (2008).
Harald Niederreiter
Linear recurring sequences
Given a, a
0, . . . , a
k−1in a finite field F
q, consider a k–th order linear recurrence relation : for n = 0, 1, 2, . . . ,
u
n+k= a
k−1u
n+k−1+ a
k−2u
n+k−2+ · · · + a
1u
n+1+ a
0u
n+ a Homogeneous : a = 0.
Initial values : u
0, u
1, . . . , u
k−1.
State vector : u
n= (u
n, u
n+1, . . . , u
n+k−1).
Initial state vector : u
0= (u
0, u
1, . . . , u
k−1).
Linear recurring sequences
Given a, a
0, . . . , a
k−1in a finite field F
q, consider a k–th order linear recurrence relation : for n = 0, 1, 2, . . . ,
u
n+k= a
k−1u
n+k−1+ a
k−2u
n+k−2+ · · · + a
1u
n+1+ a
0u
n+ a Homogeneous : a = 0.
Initial values : u
0, u
1, . . . , u
k−1.
State vector : u
n= (u
n, u
n+1, . . . , u
n+k−1).
Initial state vector : u
0= (u
0, u
1, . . . , u
k−1).
Linear recurring sequences
Given a, a
0, . . . , a
k−1in a finite field F
q, consider a k–th order linear recurrence relation : for n = 0, 1, 2, . . . ,
u
n+k= a
k−1u
n+k−1+ a
k−2u
n+k−2+ · · · + a
1u
n+1+ a
0u
n+ a Homogeneous : a = 0.
Initial values : u
0, u
1, . . . , u
k−1.
State vector : u
n= (u
n, u
n+1, . . . , u
n+k−1).
Initial state vector : u
0= (u
0, u
1, . . . , u
k−1).
Linear recurring sequences
Given a, a
0, . . . , a
k−1in a finite field F
q, consider a k–th order linear recurrence relation : for n = 0, 1, 2, . . . ,
u
n+k= a
k−1u
n+k−1+ a
k−2u
n+k−2+ · · · + a
1u
n+1+ a
0u
n+ a Homogeneous : a = 0.
Initial values : u
0, u
1, . . . , u
k−1.
State vector : u
n= (u
n, u
n+1, . . . , u
n+k−1).
Initial state vector : u
0= (u
0, u
1, . . . , u
k−1).
Feedback shift register
Electronic switching circuit : adder, constant multiplier, constant adder, delay element (flip-flop)
u
n+k= a
k−1u
n+k−1+ a
k−2u
n+k−2+ · · · + a
1u
n+1+ a
0u
n+ a
The least period of a linear recurrence sequence
Since F
qis finite, any linear recurrence sequence (u
n)
n≥0in F
qis ultimately periodic : there exists r > 0 and n
0≥ 0 such that u
n= u
n+rfor n ≥ n
0. The least n
0for which this relation holds is the preperiod.
Any period is a multiple of the least period.
A linear recurrence sequence (u
n)
n≥0is periodic if there exists a period r > 0 such that u
n= u
n+rfor n ≥ 0. In this case this relation holds for the least period ; the preperiod is 0. If a
06= 0, then the sequence is periodic.
The least period r of a (homogeneous) linear recurrence
sequence in F
qof order k satisfies r ≤ q
k− 1.
The least period of a linear recurrence sequence
Since F
qis finite, any linear recurrence sequence (u
n)
n≥0in F
qis ultimately periodic : there exists r > 0 and n
0≥ 0 such that u
n= u
n+rfor n ≥ n
0. The least n
0for which this relation holds is the preperiod.
Any period is a multiple of the least period.
A linear recurrence sequence (u
n)
n≥0is periodic if there exists a period r > 0 such that u
n= u
n+rfor n ≥ 0. In this case this relation holds for the least period ; the preperiod is 0. If a
06= 0, then the sequence is periodic.
The least period r of a (homogeneous) linear recurrence
sequence in F
qof order k satisfies r ≤ q
k− 1.
The least period of a linear recurrence sequence
Since F
qis finite, any linear recurrence sequence (u
n)
n≥0in F
qis ultimately periodic : there exists r > 0 and n
0≥ 0 such that u
n= u
n+rfor n ≥ n
0. The least n
0for which this relation holds is the preperiod.
Any period is a multiple of the least period.
A linear recurrence sequence (u
n)
n≥0is periodic if there exists a period r > 0 such that u
n= u
n+rfor n ≥ 0. In this case this relation holds for the least period ; the preperiod is 0. If a
06= 0, then the sequence is periodic.
The least period r of a (homogeneous) linear recurrence
sequence in F
qof order k satisfies r ≤ q
k− 1.
The least period of a linear recurrence sequence
Since F
qis finite, any linear recurrence sequence (u
n)
n≥0in F
qis ultimately periodic : there exists r > 0 and n
0≥ 0 such that u
n= u
n+rfor n ≥ n
0. The least n
0for which this relation holds is the preperiod.
Any period is a multiple of the least period.
A linear recurrence sequence (u
n)
n≥0is periodic if there exists a period r > 0 such that u
n= u
n+rfor n ≥ 0. In this case this relation holds for the least period ; the preperiod is 0. If a
06= 0, then the sequence is periodic.
The least period r of a (homogeneous) linear recurrence
sequence in F
qof order k satisfies r ≤ q
k− 1.
The companion matrix
The linear recurrence sequence
u
n+k= a
k−1u
n+k−1+ · · · + a
0u
nfor n ≥ 0 can be written
u
n= u
0A
nwhere
A =
0 0 0 · · · 0 a
01 0 0 · · · 0 a
10 1 0 · · · 0 a
2.. . .. . .. . . .. ... .. . 0 0 0 · · · 1 a
k−1
.
The least period
Assume a
06= 0
The least period of the linear recurrence sequence divides the order of the matrix A in the general linear group GL
k( F
q).
The impulse response sequence is the linear recurrence sequence with the initial state (0, 0, . . . , 0, 1).
The least period of a linear recurrence sequence divides the
least period of the corresponding impulse response sequence.
The least period
Assume a
06= 0
The least period of the linear recurrence sequence divides the order of the matrix A in the general linear group GL
k( F
q).
The impulse response sequence is the linear recurrence sequence with the initial state (0, 0, . . . , 0, 1).
The least period of a linear recurrence sequence divides the
least period of the corresponding impulse response sequence.
The least period
Assume a
06= 0
The least period of the linear recurrence sequence divides the order of the matrix A in the general linear group GL
k( F
q).
The impulse response sequence is the linear recurrence sequence with the initial state (0, 0, . . . , 0, 1).
The least period of a linear recurrence sequence divides the
least period of the corresponding impulse response sequence.
The least period
Assume a
06= 0
The least period of the linear recurrence sequence divides the order of the matrix A in the general linear group GL
k( F
q).
The impulse response sequence is the linear recurrence sequence with the initial state (0, 0, . . . , 0, 1).
The least period of a linear recurrence sequence divides the
least period of the corresponding impulse response sequence.
Further examples of linear recurrence sequences
I
Fibonacci
I
Lucas
I
Perrin
I
Padovan
I
Narayana
References
Linear recurrence sequences : an introduction.
http://www.imj- prg.fr/~michel.waldschmidt/articles/pdf/LinearRecurrenceSequencesIntroduction.pdf
Linear recurrence sequences, exponential polynomials and Diophantine approximation.
http://www.imj- prg.fr/~michel.waldschmidt/articles/pdf/LinRecSeqDiophAppxVI.pdf
Leonardo Pisano (Fibonacci)
Fibonacci sequence (F
n)
n≥0, 0, 1, 1, 2, 3, 5, 8, 13, 21,
34, 55, 89, 144, 233, . . . is defined by
F
0= 0, F
1= 1,
F
n+2= F
n+1+F
nfor n ≥ 0.
http://oeis.org/A000045
Leonardo Pisano (Fibonacci)
(1170–1250)
Lucas sequence http://oeis.org/000032
The Lucas sequence (L
n)
n≥0satisfies the same recurrence relation as the Fibonacci sequence, namely
L
n+2= L
n+1+ L
nfor n ≥ 0, only the initial values are different :
L
0= 2, L
1= 1.
The sequence of Lucas numbers starts with
2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322, . . .
A closed form involving the Golden ratio Φ is L
n= Φ
n+ (−Φ)
−n,
from which it follows that for n ≥ 2, L
nis the nearest integer
to Φ
n.
Lucas sequence http://oeis.org/000032
The Lucas sequence (L
n)
n≥0satisfies the same recurrence relation as the Fibonacci sequence, namely
L
n+2= L
n+1+ L
nfor n ≥ 0, only the initial values are different :
L
0= 2, L
1= 1.
The sequence of Lucas numbers starts with
2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322, . . .
A closed form involving the Golden ratio Φ is L
n= Φ
n+ (−Φ)
−n,
from which it follows that for n ≥ 2, L
nis the nearest integer
to Φ
n.
Perrin sequence http://oeis.org/A001608
The Perrin sequence (also called skiponacci sequence) is the linear recurrence sequence (P
n)
n≥0defined by
P
n+3= P
n+1+ P
nfor n ≥ 0, with the initial conditions
P
0= 3, P
1= 0, P
2= 2.
It starts with
3, 0, 2, 3, 2, 5, 5, 7, 10, 12, 17, 22, 29, 39, 51, 68, . . .
Fran¸cois Olivier Raoul Perrin (1841-1910) :
https://en.wikipedia.org/wiki/Perrin_number
Perrin sequence http://oeis.org/A001608
The Perrin sequence (also called skiponacci sequence) is the linear recurrence sequence (P
n)
n≥0defined by
P
n+3= P
n+1+ P
nfor n ≥ 0, with the initial conditions
P
0= 3, P
1= 0, P
2= 2.
It starts with
3, 0, 2, 3, 2, 5, 5, 7, 10, 12, 17, 22, 29, 39, 51, 68, . . .
Fran¸cois Olivier Raoul Perrin (1841-1910) :
https://en.wikipedia.org/wiki/Perrin_number
Narayana sequence https://oeis.org/A000930
Narayana sequence is defined by the recurrence relation C
n+3= C
n+2+ C
nwith the initial values C
0= 2, C
1= 3, C
2= 4.
It starts with
2, 3, 4, 6, 9, 13, 19, 28, 41, 60, 88, 129, 189, 277, . . .
Real root of x
3− x
2− 1
3
s
29 + 3 √ 93
2 +
3s
29 − 3 √ 93
2 + 1
3 = 1.465571231876768 . . .
Narayana sequence https://oeis.org/A000930
Narayana sequence is defined by the recurrence relation C
n+3= C
n+2+ C
nwith the initial values C
0= 2, C
1= 3, C
2= 4.
It starts with
2, 3, 4, 6, 9, 13, 19, 28, 41, 60, 88, 129, 189, 277, . . .
Real root of x
3− x
2− 1
3