HOME

TheInfoList



OR:

In mathematics, the Lucas sequences U_n(P,Q) and V_n(P, Q) are certain constant-recursive integer sequences that satisfy the recurrence relation : 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 ex ...
s 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 . Lucas sequences are named after the
French French (french: français(e), link=no) may refer to: * Something of, from, or related to France ** French language, which originated in France, and its various dialects and accents ** French people, a nation and ethnic group identified with Franc ...
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, mathematical structure, structure, space, Mathematica ...
Édouard 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 relations: :\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 ser ...
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_(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 numbers F_n=U_n(1,-1) and Lucas numbers 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. 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 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. 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 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 numbers : : Lucas numbers : : Pell numbers : : Pell–Lucas numbers (companion Pell numbers) : : Jacobsthal numbers : : Jacobsthal–Lucas numbers : : Mersenne numbers 2''n'' − 1 : : Numbers of the form 2''n'' + 1, which include the Fermat numbers : : The square roots of the square triangular numbers. : : Fibonacci polynomials : : Lucas polynomials : :
Chebyshev polynomials The Chebyshev polynomials are two sequences of polynomials related to the cosine and sine functions, notated as T_n(x) and U_n(x). They can be defined in several equivalent ways, one of which starts with trigonometric functions: The Chebys ...
of second kind : :
Chebyshev polynomials The Chebyshev polynomials are two sequences of polynomials related to the cosine and sine functions, notated as T_n(x) and U_n(x). They can be defined in several equivalent ways, one of which starts with trigonometric functions: The Chebys ...
of first kind multiplied by 2 : : Repunits base ''x'' : : ''xn'' + 1 Some Lucas sequences have entries in the On-Line Encyclopedia of Integer Sequences: :


Applications

* Lucas sequences are used in probabilistic Lucas pseudoprime tests, which are part of the commonly used
Baillie–PSW primality test The Baillie–PSW primality test is a probabilistic primality testing algorithm that determines whether a number is composite or is a probable prime. It is named after Robert Baillie, Carl Pomerance, John Selfridge, and Samuel Wagstaff. The Bailli ...
. * 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 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 t ...
(LUCELG), Diffie–Hellman (LUCDIF), and
RSA RSA may refer to: Organizations Academia and education * Rabbinical Seminary of America, a yeshiva in New York City *Regional Science Association International (formerly the Regional Science Association), a US-based learned society *Renaissance S ...
(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.


See also

* Lucas pseudoprime * Frobenius pseudoprime *
Somer–Lucas pseudoprime In mathematics, in particular number theory, an odd composite number ''N'' is a Somer–Lucas ''d''-pseudoprime (with given ''d'' â‰Ą 1) if there exists a nondegenerate Lucas sequence U(P,Q) with the discriminant D=P^2-4Q, such that \gcd( ...


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