OFFSET
0,1
REFERENCES
Hugh C. Williams, Edouard Lucas and Primality Testing, John Wiley and Sons, 1998, p. 75.
LINKS
FORMULA
a(n) = 8a(n-1) - 8a(n-2) + a(n-3).
a(n) = A081067(n)+1. - R. J. Mathar, May 18 2007
G.f.: -3*(2-9*x+2*x^2)/(x-1)/(x^2-7*x+1) = -3/(x-1)+(-3*x+3)/(x^2-7*x+1). - R. J. Mathar, Nov 18 2007
Sum_{n>=0} 1/a(n) = sqrt(5)/10. - Amiram Eldar, Oct 05 2020
MAPLE
luc := proc(n) option remember: if n=0 then RETURN(2) fi: if n=1 then RETURN(1) fi: luc(n-1)+luc(n-2): end: for n from 0 to 40 do printf(`%d, `, luc(4*n+2)+3) od: # James A. Sellers, Mar 05 2003
MATHEMATICA
Table[LucasL[4*n + 2] + 3, {n, 0, 30}] (* Amiram Eldar, Oct 05 2020 *)
PROG
(PARI) Vec(-3*(2-9*x+2*x^2)/(x-1)/(x^2-7*x+1) + O(x^30)) \\ Michel Marcus, Dec 23 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. K. Guy, Mar 04 2003
EXTENSIONS
More terms from James A. Sellers, Mar 05 2003
STATUS
approved