OFFSET
0,2
LINKS
FORMULA
G.f.: 2*x / (1 - 2*x - 5*x^2).
a(n) = 2*a(n-1) + 5*a(n-2), a(0)=0, a(1)=2.
a(n) = 1 / sqrt(6) * ( (1+sqrt(6))^n - (1-sqrt(6))^n ).
a(n) = 2 * A002533(n-1) + a(n-1).
MATHEMATICA
CoefficientList[Series[2x/(1-2x-5x^2), {x, 0, 25}], x]
LinearRecurrence[{2, 5}, {0, 2}, 40] (* Harvey P. Dale, Nov 03 2011 *)
With[{c=Sqrt[6]}, Simplify/@ Table[((1-c)^n+c (1-c)^n-(1+c)^n+c (1+c)^n)/(5c), {n, 30}]] (* Harvey P. Dale, Nov 03 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), May 03 2003
STATUS
approved