OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (4,4,-16).
FORMULA
G.f.: (7-5*x-44*x^2)/(1-4*x-4*x^2+16*x^3).
a(n) = 4*a(n-1)+4*a(n-2)-16*a(n-3) for n>2.
MAPLE
MATHEMATICA
CoefficientList[Series[(7 - 5 x - 44 x^2)/(1 - 4 x - 4 x^2 + 16 x^3), {x, 0, 30}], x]
PROG
(Magma) [2^(n-2)*(2^(n+4)-(-1)^n+13): n in [0..25]] /* or */ I:=[7, 23, 76]; [n le 3 select I[n] else 4*Self(n-1)+4*Self(n-2)-16*Self(n-3): n in [1..30]];
(PARI) a(n)=(2^(n+4)-(-1)^n+13)<<(n-2) \\ Charles R Greathouse IV, Aug 26 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 07 2014
STATUS
approved