In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, the Lucas sequences
and
are certain
constant-recursive integer sequence
In mathematics, an integer sequence is a sequence (i.e., an ordered list) of integers.
An integer sequence may be specified ''explicitly'' by giving a formula for its ''n''th term, or ''implicitly'' by giving a relationship between its terms. For ...
s that satisfy the
recurrence relation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
:
where
and
are fixed integers. Any sequence satisfying this recurrence relation can be represented as a
linear combination of the Lucas sequences
and
.
More generally, Lucas sequences
and
represent sequences of
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An example ...
s in
and
with integer coefficients.
Famous examples of Lucas sequences include the
Fibonacci number
In mathematics, the Fibonacci numbers, commonly denoted , form a sequence, the Fibonacci sequence, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start the sequence from ...
s,
Mersenne number
In mathematics, a Mersenne prime is a prime number that is one less than a power of two. That is, it is a prime number of the form for some integer . They are named after Marin Mersenne, a French Minim friar, who studied them in the early 17th ...
s,
Pell number
In mathematics, the Pell numbers are an infinite sequence of integers, known since ancient times, that comprise the denominators of the closest rational approximations to the square root of 2. This sequence of approximations begins , , , , an ...
s,
Lucas number
The Lucas numbers or Lucas series are an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci numbers. Lucas numbers and Fibonacci n ...
s,
Jacobsthal number In mathematics, the Jacobsthal numbers are an integer sequence named after the German mathematician Ernst Jacobsthal. Like the related Fibonacci numbers, they are a specific type of Lucas sequence U_n(P,Q) for which ''P'' = 1, and ''Q''& ...
s, and a superset of
Fermat number
In mathematics, a Fermat number, named after Pierre de Fermat, who first studied them, is a positive integer of the form
:F_ = 2^ + 1,
where ''n'' is a non-negative integer. The first few Fermat numbers are:
: 3, 5, 17, 257, 65537, 42949672 ...
s . Lucas sequences are named after the
French mathematician
A mathematician is someone who uses an extensive knowledge of mathematics in their work, typically to solve mathematical problems.
Mathematicians are concerned with numbers, data, quantity, structure, space, models, and change.
History
On ...
Édouard Lucas
__NOTOC__
François Édouard Anatole Lucas (; 4 April 1842 – 3 October 1891) was a French mathematician. Lucas is known for his study of the Fibonacci sequence. The related Lucas sequences and Lucas numbers are named after him.
Biography
Lucas ...
.
Recurrence relations
Given two integer parameters
and
, the Lucas sequences of the first kind
and of the second kind
are defined by the
recurrence relation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
s:
:
and
:
It is not hard to show that for
,
:
The above relations can be stated in matrix form as follows:
:
:
:
Examples
Initial terms of Lucas sequences
and
are given in the table:
:
Explicit expressions
The characteristic equation of the recurrence relation for Lucas sequences
and
is:
:
It has the
discriminant and the roots:
:
Thus:
:
:
:
Note that the sequence
and the sequence
also satisfy the recurrence relation. However these might not be integer sequences.
Distinct roots
When
, ''a'' and ''b'' are distinct and one quickly verifies that
:
:
.
It follows that the terms of Lucas sequences can be expressed in terms of ''a'' and ''b'' as follows
:
:
Repeated root
The case
occurs exactly when
for some integer ''S'' so that
. In this case one easily finds that
:
:
.
Properties
Generating functions
The ordinary
generating function
In mathematics, a generating function is a way of encoding an infinite sequence of numbers () by treating them as the coefficients of a formal power series. This series is called the generating function of the sequence. Unlike an ordinary seri ...
s are
:
:
Pell equations
When
, the Lucas sequences
and
satisfy certain
Pell equation
Pell's equation, also called the Pell–Fermat equation, is any Diophantine equation of the form x^2 - ny^2 = 1, where ''n'' is a given positive nonsquare integer, and integer solutions are sought for ''x'' and ''y''. In Cartesian coordinates, ...
s:
:
:
:
Relations between sequences with different parameters
*For any number ''c'', the sequences
and
with
::
::
:have the same discriminant as
and
:
::
*For any number ''c'', we also have
::
::
Other relations
The terms of Lucas sequences satisfy relations that are generalizations of those between
Fibonacci number
In mathematics, the Fibonacci numbers, commonly denoted , form a sequence, the Fibonacci sequence, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start the sequence from ...
s
and
Lucas number
The Lucas numbers or Lucas series are an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci numbers. Lucas numbers and Fibonacci n ...
s
. For example:
:
Divisibility properties
Among the consequences is that
is a multiple of
, i.e., the sequence
is a
divisibility sequence
In mathematics, a divisibility sequence is an integer sequence (a_n) indexed by positive integers ''n'' such that
:\textm\mid n\texta_m\mid a_n
for all ''m'', ''n''. That is, whenever one index is a multiple of another one, then the co ...
. This implies, in particular, that
can be prime only when ''n'' is prime.
Another consequence is an analog of
exponentiation by squaring
Exponentiation is a mathematical operation, written as , involving two numbers, the '' base'' and the ''exponent'' or ''power'' , and pronounced as " (raised) to the (power of) ". When is a positive integer, exponentiation corresponds to re ...
that allows fast computation of
for large values of ''n''.
Moreover, if
, then
is a strong divisibility sequence.
Other divisibility properties are as follows:
* If ''n'' / ''m'' is odd, then
divides
.
* Let ''N'' be an integer relatively prime to 2''Q''. If the smallest positive integer ''r'' for which ''N'' divides
exists, then the set of ''n'' for which ''N'' divides
is exactly the set of multiples of ''r''.
* If ''P'' and ''Q'' are even, then
are always even except
.
* If ''P'' is even and ''Q'' is odd, then the parity of
is the same as ''n'' and
is always even.
* If ''P'' is odd and ''Q'' is even, then
are always odd for
.
* If ''P'' and ''Q'' are odd, then
are even if and only if ''n'' is a multiple of 3.
* If ''p'' is an odd prime, then
(see
Legendre symbol).
* If ''p'' is an odd prime and divides ''P'' and ''Q'', then ''p'' divides
for every
.
* If ''p'' is an odd prime and divides ''P'' but not ''Q'', then ''p'' divides
if and only if ''n'' is even.
* If ''p'' is an odd prime and divides not ''P'' but ''Q'', then ''p'' never divides
for
.
* If ''p'' is an odd prime and divides not ''PQ'' but ''D'', then ''p'' divides
if and only if ''p'' divides ''n''.
* If ''p'' is an odd prime and does not divide ''PQD'', then ''p'' divides
, where
.
The last fact generalizes
Fermat's little theorem. These facts are used in the
Lucas–Lehmer primality test.
The converse of the last fact does not hold, as the converse of Fermat's little theorem does not hold. There exists a composite ''n'' relatively prime to ''D'' and dividing
, where
. Such a composite is called a
Lucas pseudoprime Lucas pseudoprimes and Fibonacci pseudoprimes are composite integers that pass certain tests which all primes and very few composite numbers pass: in this case, criteria relative to some Lucas sequence.
Baillie-Wagstaff-Lucas pseudoprimes
Baill ...
.
A
prime factor of a term in a Lucas sequence that does not divide any earlier term in the sequence is called primitive.
Carmichael's theorem
In number theory, Carmichael's theorem, named after the American mathematician R. D. Carmichael,
states that, for any nondegenerate Lucas sequence of the first kind ''U'n''(''P'', ''Q'') with relatively prime parameters ''P'', ...
states that all but finitely many of the terms in a Lucas sequence have a primitive
prime factor.
Indeed, Carmichael (1913) showed that if ''D'' is positive and ''n'' is not 1, 2 or 6, then
has a primitive prime factor. In the case ''D'' is negative, a deep result of Bilu, Hanrot, Voutier and Mignotte shows that if ''n'' > 30, then
has a primitive prime factor and determines all cases
has no primitive prime factor.
Specific names
The Lucas sequences for some values of ''P'' and ''Q'' have specific names:
: :
Fibonacci number
In mathematics, the Fibonacci numbers, commonly denoted , form a sequence, the Fibonacci sequence, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start the sequence from ...
s
: :
Lucas number
The Lucas numbers or Lucas series are an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci numbers. Lucas numbers and Fibonacci n ...
s
: :
Pell number
In mathematics, the Pell numbers are an infinite sequence of integers, known since ancient times, that comprise the denominators of the closest rational approximations to the square root of 2. This sequence of approximations begins , , , , an ...
s
: :
Pell–Lucas numbers
In mathematics, the Pell numbers are an infinite sequence of integers, known since ancient times, that comprise the denominators of the closest rational approximations to the square root of 2. This sequence of approximations begins , , , , a ...
(companion Pell numbers)
: :
Jacobsthal number In mathematics, the Jacobsthal numbers are an integer sequence named after the German mathematician Ernst Jacobsthal. Like the related Fibonacci numbers, they are a specific type of Lucas sequence U_n(P,Q) for which ''P'' = 1, and ''Q''& ...
s
: :
Jacobsthal–Lucas numbers In mathematics, the Jacobsthal numbers are an integer sequence named after the German mathematician Ernst Jacobsthal. Like the related Fibonacci numbers, they are a specific type of Lucas sequence U_n(P,Q) for which ''P'' = 1, and ''Q'' ...
: :
Mersenne number
In mathematics, a Mersenne prime is a prime number that is one less than a power of two. That is, it is a prime number of the form for some integer . They are named after Marin Mersenne, a French Minim friar, who studied them in the early 17th ...
s 2
''n'' − 1
: : Numbers of the form 2
''n'' + 1, which include the
Fermat number
In mathematics, a Fermat number, named after Pierre de Fermat, who first studied them, is a positive integer of the form
:F_ = 2^ + 1,
where ''n'' is a non-negative integer. The first few Fermat numbers are:
: 3, 5, 17, 257, 65537, 42949672 ...
s
[
: : The square roots of the ]square triangular number
In mathematics, a square triangular number (or triangular square number) is a number which is both a triangular number and a perfect square. There are infinitely many square triangular numbers; the first few are:
:0, 1, 36, , , , , , ,
Expl ...
s.
: : Fibonacci polynomials
: : Lucas polynomials
: : Chebyshev polynomials of second kind
: : Chebyshev polynomials of first kind multiplied by 2
: : Repunit
In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for repeated unit and was coined in 1966 by Albert H. Beiler in his book ''Recreat ...
s base ''x''
: : ''xn'' + 1
Some Lucas sequences have entries in the On-Line Encyclopedia of Integer Sequences
The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to t ...
:
:
Applications
* Lucas sequences are used in probabilistic Lucas pseudoprime Lucas pseudoprimes and Fibonacci pseudoprimes are composite integers that pass certain tests which all primes and very few composite numbers pass: in this case, criteria relative to some Lucas sequence.
Baillie-Wagstaff-Lucas pseudoprimes
Baill ...
tests, which are part of the commonly used Baillie–PSW primality test.
* Lucas sequences are used in some primality proof methods, including the Lucas–Lehmer–Riesel test
In mathematics, the Lucas–Lehmer–Riesel test is a primality test for numbers of the form ''N'' = ''k'' ⋅ 2''n'' − 1 ( Riesel numbers) with odd ''k'' < 2''n''. The test was developed by Hans ...
, and the N+1 and hybrid N-1/N+1 methods such as those in Brillhart-Lehmer-Selfridge 1975
* LUC is a public-key cryptosystem
Public-key cryptography, or asymmetric cryptography, is the field of cryptographic systems that use pairs of related keys. Each key pair consists of a public key and a corresponding private key. Key pairs are generated with cryptographic alg ...
based on Lucas sequences that implements the analogs of ElGamal
In cryptography, the ElGamal encryption system is an asymmetric key encryption algorithm for public-key cryptography which is based on the Diffie–Hellman key exchange. It was described by Taher Elgamal in 1985. ElGamal encryption is used in th ...
(LUCELG), Diffie–Hellman (LUCDIF), and RSA (LUCRSA). The encryption of the message in LUC is computed as a term of certain Lucas sequence, instead of using modular exponentiation
Modular exponentiation is exponentiation performed over a modulus. It is useful in computer science, especially in the field of public-key cryptography, where it is used in both Diffie-Hellman Key Exchange and RSA public/private keys.
Modul ...
as in RSA or Diffie–Hellman. However, a paper by Bleichenbacher et al. shows that many of the supposed security advantages of LUC over cryptosystems based on modular exponentiation are either not present, or not as substantial as claimed.
See also
* Lucas pseudoprime Lucas pseudoprimes and Fibonacci pseudoprimes are composite integers that pass certain tests which all primes and very few composite numbers pass: in this case, criteria relative to some Lucas sequence.
Baillie-Wagstaff-Lucas pseudoprimes
Baill ...
* Frobenius pseudoprime
In number theory, a Frobenius pseudoprime is a pseudoprime, whose definition was inspired by the quadratic Frobenius test described by Jon Grantham in a 1998 preprint and published in 2000. Frobenius pseudoprimes can be defined with respect to pol ...
* Somer–Lucas pseudoprime
Notes
References
*
*
*
*
*
*
*
*
*
*
*
*
*
''Lucas sequence''
at Encyclopedia of Mathematics
The ''Encyclopedia of Mathematics'' (also ''EOM'' and formerly ''Encyclopaedia of Mathematics'') is a large reference work in mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structu ...
.
*
* {{cite web, url = http://weidai.com/lucas.html, author=Wei Dai, title= Lucas Sequences in Cryptography, author-link=Wei Dai
Recurrence relations
Integer sequences