Lucas Sequence
   HOME

TheInfoList



OR:

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 U_n(P,Q) and V_n(P, Q) 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 ...
: x_n = P \cdot x_ - Q \cdot x_ where P and Q are fixed integers. Any sequence satisfying this recurrence relation can be represented as a linear combination of the Lucas sequences U_n(P, Q) and V_n(P, Q). More generally, Lucas sequences U_n(P, Q) and V_n(P, Q) 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 P and Q 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 P and Q, the Lucas sequences of the first kind U_n(P,Q) and of the second kind V_n(P,Q) 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: :\begin U_0(P,Q)&=0, \\ U_1(P,Q)&=1, \\ U_n(P,Q)&=P\cdot U_(P,Q)-Q\cdot U_(P,Q) \mboxn>1, \end and :\begin V_0(P,Q)&=2, \\ V_1(P,Q)&=P, \\ V_n(P,Q)&=P\cdot V_(P,Q)-Q\cdot V_(P,Q) \mboxn>1. \end It is not hard to show that for n>0, :\begin U_n(P,Q)&=\frac, \\ V_n(P,Q)&=\frac. \end The above relations can be stated in matrix form as follows: : \begin U_n(P,Q)\\ U_(P,Q)\end = \begin 0 & 1\\ -Q & P\end\cdot \begin U_(P,Q)\\ U_n(P,Q)\end,
: \begin V_n(P,Q)\\ V_(P,Q)\end = \begin 0 & 1\\ -Q & P\end\cdot \begin V_(P,Q)\\ V_n(P,Q)\end,
: \begin U_n(P,Q)\\ V_n(P,Q)\end = \begin P/2 & 1/2\\ (P^2-4Q)/2 & P/2\end\cdot \begin U_(P,Q)\\ V_(P,Q)\end.


Examples

Initial terms of Lucas sequences U_n(P,Q) and V_n(P,Q) are given in the table: : \begin n & U_n(P,Q) & V_n(P,Q) \\ \hline 0 & 0 & 2 \\ 1 & 1 & P \\ 2 & P & ^-2Q \\ 3 & ^-Q & ^-3PQ \\ 4 & ^-2PQ & ^-4^Q+2^ \\ 5 & ^-3^Q+^ & ^-5^Q+5P^ \\ 6 & ^-4^Q+3P^ & ^-6^Q+9^^-2^ \end


Explicit expressions

The characteristic equation of the recurrence relation for Lucas sequences U_n(P,Q) and V_n(P,Q) is: :x^2 - Px + Q=0 \, It has the discriminant D=P^2 - 4Q and the roots: :a = \frac2\quad\text\quad b = \frac2. \, Thus: :a + b = P\, , :a b = \frac(P^2 - D) = Q\, , :a - b = \sqrt\, . Note that the sequence a^n and the sequence b^n also satisfy the recurrence relation. However these might not be integer sequences.


Distinct roots

When D\ne 0, ''a'' and ''b'' are distinct and one quickly verifies that :a^n = \frac :b^n = \frac. It follows that the terms of Lucas sequences can be expressed in terms of ''a'' and ''b'' as follows :U_n= \frac = \frac :V_n=a^n+b^n \,


Repeated root

The case D=0 occurs exactly when P=2S \textQ=S^2 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^\, :V_n(P,Q)=V_n(2S,S^2)=2S^n\,.


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 : \sum_ U_n(P,Q)z^n = \frac; : \sum_ V_n(P,Q)z^n = \frac.


Pell equations

When Q=\pm 1, the Lucas sequences U_n(P, Q) and V_n(P, Q) 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: :V_n(P,1)^2 - D\cdot U_n(P,1)^2 = 4, :V_(P,-1)^2 - D\cdot U_(P,-1)^2 = 4, :V_(P,-1)^2 - D\cdot U_(P,-1)^2 = -4.


Relations between sequences with different parameters

*For any number ''c'', the sequences U_n(P', Q') and V_n(P', Q') with :: P' = P + 2c :: Q' = cP + Q + c^2 :have the same discriminant as U_n(P, Q) and V_n(P, Q): :: P'^2 - 4Q' = (P+2c)^2 - 4(cP + Q + c^2) = P^2 - 4Q = D. *For any number ''c'', we also have :: U_n(cP,c^2Q) = c^\cdot U_n(P,Q), :: V_n(cP,c^2Q) = c^n\cdot V_n(P,Q).


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 F_n=U_n(1,-1) 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 L_n=V_n(1,-1). For example: : \begin \text & (P,Q) = (1,-1) \\ \hline (P^2-4Q) U_n = =2V_-P V_n & 5F_n = =2L_ - L_ \\ V_n = U_ - Q U_=2U_-PU_n & L_n = F_ + F_=2F_-F_n \\ U_ = U_n V_n & F_ = F_n L_n \\ V_ = V_n^2 - 2Q^n & L_ = L_n^2 - 2(-1)^n \\ U_ = U_n U_ - Q U_m U_=\frac & F_ = F_n F_ + F_m F_=\frac \\ V_ = V_m V_n - Q^n V_ = D U_m U_n + Q^n V_ & L_ = L_m L_n - (-1)^n L_ = 5 F_m F_n + (-1)^n L_ \\ V_n^2-DU_n^2=4Q^n & L_n^2-5F_n^2=4(-1)^n \\ U_n^2-U_U_=Q^ & F_n^2-F_F_=(-1)^ \\ V_n^2-V_V_=DQ^ & L_n^2-L_L_=5(-1)^ \\ DU_n=V_-QV_ & F_n=\frac \\ V_=\frac & L_=\frac \\ U_=U_mV_n-Q^nU_ & F_=F_mL_n-(-1)^nF_ \\ 2^U_n=P^+P^D+\cdots & 2^F_n=+5+\cdots \\ 2^V_n=P^n+P^D+P^D^2+\cdots & 2^L_n=1+5+5^2+\cdots \end


Divisibility properties

Among the consequences is that U_(P,Q) is a multiple of U_m(P,Q), i.e., the sequence (U_m(P,Q))_ 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 U_n(P,Q) 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 U_n(P,Q) for large values of ''n''. Moreover, if \gcd(P,Q)=1, then (U_m(P,Q))_ is a strong divisibility sequence. Other divisibility properties are as follows: * If ''n'' / ''m'' is odd, then V_m divides V_n. * Let ''N'' be an integer relatively prime to 2''Q''. If the smallest positive integer ''r'' for which ''N'' divides U_r exists, then the set of ''n'' for which ''N'' divides U_n is exactly the set of multiples of ''r''. * If ''P'' and ''Q'' are even, then U_n, V_n are always even except U_1. * If ''P'' is even and ''Q'' is odd, then the parity of U_n is the same as ''n'' and V_n is always even. * If ''P'' is odd and ''Q'' is even, then U_n, V_n are always odd for n=1, 2, \ldots. * If ''P'' and ''Q'' are odd, then U_n, V_n are even if and only if ''n'' is a multiple of 3. * If ''p'' is an odd prime, then U_p\equiv\left(\tfrac\right), V_p\equiv P\pmod (see Legendre symbol). * If ''p'' is an odd prime and divides ''P'' and ''Q'', then ''p'' divides U_n for every n>1. * If ''p'' is an odd prime and divides ''P'' but not ''Q'', then ''p'' divides U_n if and only if ''n'' is even. * If ''p'' is an odd prime and divides not ''P'' but ''Q'', then ''p'' never divides U_n for n=1, 2, \ldots. * If ''p'' is an odd prime and divides not ''PQ'' but ''D'', then ''p'' divides U_n if and only if ''p'' divides ''n''. * If ''p'' is an odd prime and does not divide ''PQD'', then ''p'' divides U_l, where l=p-\left(\tfrac\right). 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 U_l, where l=n-\left(\tfrac\right). 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 U_n 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 U_n has a primitive prime factor and determines all cases U_n 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