OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-4,-1).
FORMULA
For n > 3, a(n) = 6*a(n-1) - 4*a(n-2) - a(n-3); a(n) = floor(t(5)*r(5)^n) where t(5) = (1/10)*(1 + 7/sqrt(29)) is the positive root of 145*X^2 = 29*X + 1.
G.f.: x/((x-1)*(x^2+5*x-1)). - Colin Barker, Jan 27 2013
G.f.: 1/(1/Q(0) + 3*x^3 - 3*x) where Q(k) = 1 + k*(2*x+1) + 8*x - 2*x*(k+1)*(k+5)/Q(k+1) ; (continued fraction). - Sergei N. Gladkovskii, Mar 15 2013
MAPLE
a:=n->sum(fibonacci(i, 5), i=0..n): seq(a(n), n=1..21); # Zerinvary Lajos, Mar 20 2008
MATHEMATICA
Join[{a=1, b=6}, Table[c=5*b+1*a+1; a=b; b=c, {n, 60}]] (* Vladimir Joseph Stephan Orlovsky, Feb 06 2011*)
LinearRecurrence[{6, -4, -1}, {1, 6, 32}, 30] (* Harvey P. Dale, Jan 06 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, May 07 2003
STATUS
approved