OFFSET
0,2
COMMENTS
Essentially the same as A022112. - R. J. Mathar, Nov 30 2011
LINKS
David A. Corneth, Table of n, a(n) for n = 0..1999 (terms n = 4..500 from R. H. Hardin)
Index entries for linear recurrences with constant coefficients, signature (1,1).
FORMULA
From Colin Barker, Oct 27 2017: (Start)
G.f.: -(x^2+1)*(x^2-x+1)*(x+1)^2/(x^2+x-1).
a(n) = 2*(((1 - sqrt(5))/2)^n + ((1 + sqrt(5))/2)^n) for n>4.
a(n) = a(n-1) + a(n-2) for n>6.
(End)
PROG
(PARI) Vec(-(x^2+1)*(x^2-x+1)*(x+1)^2/(x^2+x-1) + O(x^50)) \\ Colin Barker, Oct 27 2017
(PARI) first(n) = {my(start = [1, 2, 4, 8, 13, 22, 36]); if(n <= 7, return(vector(n+1, i, start[i]))); res = concat(start, vector(n-7)); for(i=8, n,
res[i] = res[i-1] + res[i-2]); res} \\ David A. Corneth, Oct 27 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 14 2009
STATUS
approved