OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-15,13,-4).
FORMULA
From Colin Barker, Apr 16 2016: (Start)
a(n) = (-10+4^(3+n)+15*n+9*n^2)/54.
a(n) = 6*a(n-1)-8*a(n-2)-2*a(n-3)+9*a(n-4)-4*a(n-5) for n>3.
(End)
MATHEMATICA
LinearRecurrence[{7, -15, 13, -4}, {1, 5, 20, 78}, 25] (* Vaclav Kotesovec, Apr 16 2016 *)
PROG
(PARI) Vec((1-2*x)/((1-x)^3*(1-4*x)) + O(x^50)) \\ Colin Barker, Apr 16 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved