OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-5,2).
FORMULA
a(n) = 49*2^n - 24*n - 48.
a(n) = 4*a(n-1)-5*a(n-2)+2*a(n-3) for n>2. G.f.: (1+22*x+x^2) / ((1-x)^2*(1-2*x)). - Colin Barker, Feb 18 2016
PROG
(PARI) Vec((1+22*x+x^2)/((1-x)^2*(1-2*x)) + O(x^40)) \\ Colin Barker, Feb 18 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved