Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Calculus > Discrete Calculus > Recurrence and Sum Functions >
Mathematica > Mathematics and Algorithms > Discrete Mathematics > Discrete Calculus > Recurrence and Sum Functions >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Integer Functions > Recurrence and Sum Functions >

LucasL

Updated In 7 Graphic
LucasL[n]
gives the Lucas number L_n.
LucasL[n, x]
gives the Lucas polynomial L_n(x).
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • The L_n satisfy the recurrence relation L_n=L_(n-1)+L_(n-2) with L_1=1, L_2=3.
  • For any complex value of n the L_n are given by the general formula L_n=(phi^n+cos(pi n)phi^(-n)), where phi is the golden ratio.
  • The Lucas polynomial L_n(x) is the coefficient of t^n in the expansion of (2-t x)/(1-x t-t^2).
  • The Lucas polynomials satisfy the recurrence relation L_n(x)=x L_(n-1)(x)+L_(n-2)(x).
  • LucasL can be evaluated to arbitrary numerical precision.
  • LucasL automatically threads over lists.
Compute Lucas numbers:
Compute Lucas numbers:
In[1]:=
Click for copyable input
Out[1]=
Evaluate large Lucas numbers:
Lucas numbers of negative arguments:
Non-integer arguments:
Complex arguments:
LucasL threads element-wise over lists:
Series expansion at a generic point:
TraditionalForm formatting:
Lucas polynomials:
Solve the Fibonacci recurrence equation:
Find ratios of successive Lucas numbers:
Compare with continued fractions:
Convergence to the Golden Ratio:
Calculate the number of ways to write an integer as a sum of Lucas numbers L_1,L_2,...:
Plot the counts for the first hundred integers:
Find the first Lucas number above 1000000:
First few Lucas pseudoprimes:
Expand in terms of elementary functions:
Limiting ratio:
Explicit recursive definition:
Simplify some expressions involving Lucas numbers:
Generating function:
Extract Lucas numbers as coefficients:
Large arguments can give results too large to be computed explicitly:
Results for integer arguments may not hold for non-integers:
New in 6 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team