OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (5, -5, 1).
FORMULA
G.f.: (3x-4)/((x-1)(x^2-4x+1))
a(n)=1/12*((3-7*Sqrt[3])*(2-Sqrt[3])^n+(3+7*Sqrt[3])*(2+Sqrt[3])^n-6). - Harvey P. Dale, Mar 15 2013
MATHEMATICA
a[0] = 4; a[1] = 17; a[2] = 65; a[n_] := a[n] = 5a[n - 1] - 5a[n - 2] + a[n - 3]; Table[ a[n], {n, 0, 22}] (* Or *)
CoefficientList[ Series[(3x - 4)/((x - 1)(x^2 - 4x + 1)), {x, 0, 22}], x] (* Robert G. Wilson v, Jan 12 2005 *)
LinearRecurrence[{5, -5, 1}, {4, 17, 65}, 30] (* or *) With[{c=Sqrt[3]}, Table[ Simplify[ ((3-7c)(2-c)^x+(2+c)^x (3+7c)-6)/12], {x, 30}]] (* Harvey P. Dale, Mar 15 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Creighton Dement, Dec 30 2004
EXTENSIONS
More terms from Robert G. Wilson v, Jan 12 2005
STATUS
approved