OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (11,-35,25).
FORMULA
G.f.: (1 - 5*x + 25*x^2)/((1 - x)*(1 - 5*x)^2).
a(n) = 11*a(n-1) - 35*a(n-2) + 25*a(n-3) for n>2.
a(n) = (21 - 5^(1+n) + 4*5^(1+n)*n)/16.
EXAMPLE
a(3) = 3*5^3 + (3-1)*5^(3-1) + 5 + 1 = 431.
MATHEMATICA
LinearRecurrence[{11, -35, 25}, {1, 6, 56}, 30] (* Harvey P. Dale, Jul 15 2020 *)
PROG
(PARI) Vec((1-5*x+25*x^2)/((1-x)*(1-5*x)^2) + O(x^30)) \\ Colin Barker, Nov 07 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Nov 07 2016
STATUS
approved