Lucas Sequence
   HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, 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
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s. Any sequence satisfying this recurrence relation can be represented as a
linear combination In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
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 a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s in P and Q with integer
coefficient In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s. Famous examples of Lucas sequences include the
Fibonacci number In mathematics, the Fibonacci sequence is a Integer sequence, sequence in which each element is the sum of the two elements that precede it. Numbers that are part of the Fibonacci sequence are known as Fibonacci numbers, commonly denoted . Many w ...
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 17t ...
s, Pell numbers,
Lucas number The Lucas sequence is an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci sequence. Individual numbers in the Lucas sequence ar ...
s, Jacobsthal numbers, and a superset of
Fermat number In mathematics, a Fermat number, named after Pierre de Fermat (1601–1665), the first known to have studied them, is a natural number, positive integer of the form:F_ = 2^ + 1, where ''n'' is a non-negative integer. The first few Fermat numbers ...
s (see below). Lucas sequences are named after the French mathematician
É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 Luc ...
.


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 Matrix (: matrices or matrixes) or MATRIX may refer to: Science and mathematics * Matrix (mathematics), a rectangular array of numbers, symbols or expressions * Matrix (logic), part of a formula in prenex normal form * Matrix (biology), the m ...
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 In mathematics, the discriminant of a polynomial is a quantity that depends on the coefficients and allows deducing some properties of the zero of a function, roots without computing them. More precisely, it is a polynomial function of the coef ...
D = P^2 - 4Q and the
roots A root is the part of a plant, generally underground, that anchors the plant body, and absorbs and stores water and nutrients. Root or roots may also refer to: Art, entertainment, and media * ''The Root'' (magazine), an online magazine focusin ...
: :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 representation of an infinite sequence of numbers as the coefficients of a formal power series. Generating functions are often expressed in closed form (rather than as a series), by some expression invo ...
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 equations: :V_n(P,1)^2 - D\cdot U_n(P,1)^2 = 4, :V_n(P,-1)^2 - D\cdot U_n(P,-1)^2 = 4(-1)^n.


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 sequence is a Integer sequence, sequence in which each element is the sum of the two elements that precede it. Numbers that are part of the Fibonacci sequence are known as Fibonacci numbers, commonly denoted . Many w ...
s F_n=U_n(1,-1) and
Lucas number The Lucas sequence is an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci sequence. Individual numbers in the Lucas sequence ar ...
s L_n=V_n(1,-1). For example: : \begin \text & (P,Q) = (1,-1), D = P^2 - 4Q = 5 \\ \hline D 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 U_ - Q U_m U_ = U_mV_n-Q^nU_ & F_ = F_n F_ + F_m F_ =F_mL_n-(-1)^nF_ \\ U_ = U_n (U_ - QU_) = U_n V_n & F_ = F_n (F_ + F_) = F_n L_n \\ U_ = U_^2 - Q U_n^2 & F_ = F_^2 + F_n^2 \\ 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_ = V_n^2 - 2Q^n = D U_n^2 + 2Q^n & L_ = L_n^2 - 2(-1)^n = 5 F_n^2 + 2(-1)^n \\ U_ = \frac & F_ = \frac \\ V_=\frac & L_=\frac \\ 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)^ \\ 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. This implies, in particular, that U_n(P,Q) can be
prime A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
only when ''n'' is prime. Another consequence is an analog of exponentiation by squaring 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'' is an odd multiple of ''m'', then V_m divides V_n. * Let ''N'' be an integer
relatively prime In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
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 odd and ''Q'' is even, then U_n, V_n are always odd for every n > 0. * 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'' 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 In number theory, the Legendre symbol is a multiplicative function with values 1, −1, 0 that is a quadratic character modulo of an odd prime number ''p'': its value at a (nonzero) quadratic residue mod ''p'' is 1 and at a non-quadratic re ...
). * If ''p'' is an odd prime which divides ''P'' and ''Q'', then ''p'' divides U_n for every n>1. * If ''p'' is an odd prime which divides ''P'' but not ''Q'', then ''p'' divides U_n if and only if ''n'' is even. * If ''p'' is an odd prime which divides ''Q'' but not ''P'', then ''p'' never divides U_n for any n > 0. * If ''p'' is an odd prime which divides ''D'' but not ''PQ'', then ''p'' divides U_n if and only if ''p'' divides ''n''. * If ''p'' is an odd prime which does not divide ''PQD'', then ''p'' divides U_l, where l=p-\left(\tfrac\right). The last fact generalizes
Fermat's little theorem In number theory, Fermat's little theorem states that if is a prime number, then for any integer , the number is an integer multiple of . In the notation of modular arithmetic, this is expressed as a^p \equiv a \pmod p. For example, if and , t ...
. These facts are used in the Lucas–Lehmer primality test. Like Fermat's little theorem, the converse of the last fact holds often, but not always; there exist
composite number A composite number is a positive integer that can be formed by multiplying two smaller positive integers. Accordingly it is a positive integer that has at least one divisor other than 1 and itself. Every positive integer is composite, prime numb ...
s ''n'' relatively prime to ''D'' and dividing U_l, where l=n-\left(\tfrac\right). Such composite numbers are called Lucas pseudoprimes. A
prime factor A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
of a term in a Lucas sequence which does not divide any earlier term in the sequence is called primitive. Carmichael's theorem 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 sequence is a Integer sequence, sequence in which each element is the sum of the two elements that precede it. Numbers that are part of the Fibonacci sequence are known as Fibonacci numbers, commonly denoted . Many w ...
s : :
Lucas number The Lucas sequence is an integer sequence named after the mathematician François Édouard Anatole Lucas (1842–1891), who studied both that sequence and the closely related Fibonacci sequence. Individual numbers in the Lucas sequence ar ...
s : : Pell numbers : : Pell–Lucas numbers (companion Pell numbers) : : Jacobsthal numbers : : Jacobsthal–Lucas numbers : :
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 17t ...
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 (1601–1665), the first known to have studied them, is a natural number, positive integer of the form:F_ = 2^ + 1, where ''n'' is a non-negative integer. The first few Fermat numbers ...
s : : The square roots of the square triangular numbers. : : Fibonacci polynomials : : Lucas polynomials : : Chebyshev polynomials of second kind : : Chebyshev polynomials of first kind multiplied by 2 : : Repunits in 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 th ...
: :


Applications

* Lucas sequences are used in probabilistic Lucas pseudoprime 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, 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 a ...
based on Lucas sequences that implements the analogs of ElGamal (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 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.


Software

Sagemath implements U_n and V_n as lucas_number1() and lucas_number2(), respectively.


See also

* Lucas pseudoprime * Frobenius pseudoprime * Somer–Lucas pseudoprime


Notes


References

* * * * * * * * * * * * *
''Lucas sequence''
at Encyclopedia of Mathematics. * * {{cite web, url = http://weidai.com/lucas.html, author=Wei Dai, title= Lucas Sequences in Cryptography, author-link=Wei Dai Recurrence relations Integer sequences