OFFSET
1,1
REFERENCES
Hugh C. Williams, Edouard Lucas and Primality Testing, John Wiley and Sons, 1998, p. 75.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (8,-8,1).
FORMULA
a(n) = 8*a(n-1) - 8*a(n-2) + a(n-3).
G.f.: x*(3+8*x-x^2)/((1-x)*(1-7*x+x^2)). - Colin Barker, Jun 22 2012
a(n) = 7*a(n-1) - a(n-2) + 10, n>=3. - R. J. Mathar, Nov 07 2015
MAPLE
with(combinat) for n from 0 to 25 do printf(`%d, `, fibonacci(4*n+1)-2) od # James A. Sellers, Mar 03 2003
MATHEMATICA
Fibonacci[4*Range[30]+1] -2 (* G. C. Greubel, Jul 14 2019 *)
PROG
(Magma) [Fibonacci(4*n+1)-2: n in [1..30]]; // Vincenzo Librandi, Apr 20 2011
(PARI) vector(30, n, fibonacci(4*n+1)-2) \\ G. C. Greubel, Jul 14 2019
(Sage) [fibonacci(4*n+1)-2 for n in (1..30)] # G. C. Greubel, Jul 14 2019
(GAP) List([1..30], n-> Fibonacci(4*n+1) -2); # G. C. Greubel, Jul 14 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. K. Guy, Mar 01 2003
STATUS
approved