OFFSET
0,1
REFERENCES
Hugh C. Williams, Edouard Lucas and Primality Testing, John Wiley and Sons, 1998, p. 75.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-8,1).
FORMULA
a(n) = 8a(n-1) - 8a(n-2) + a(n-3).
G.f.: -(2*x^2-21*x+4)/((x-1)*(x^2-7*x+1)). - Colin Barker, Jun 22 2012
MAPLE
with(combinat): for n from 0 to 40 do printf(`%d, `, fibonacci(4*n+2)+3) od: # James A. Sellers, Mar 05 2003
MATHEMATICA
Fibonacci[4*Range[0, 30]+2]+3 (* Paolo Xausa, Mar 01 2024 *)
PROG
(Magma) [Fibonacci(4*n+2)+3: n in [0..50]]; // Vincenzo Librandi, Apr 20 2011
(PARI) Vec(-(2*x^2-21*x+4)/((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