OFFSET
1,1
COMMENTS
Essentially the same as A145923. - R. J. Mathar, Oct 23 2016
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: x*(15 -12*x +11*x^2 -6*x^3) / (1-x)^3.
E.g.f.: 7 + 6*x + (4*x^2 + 16*x - 7)*exp(x). - G. C. Greubel, Oct 12 2016
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>4.
a(n) = 4*n^2 + 12*n - 7 for n>1.
MATHEMATICA
Join[{15}, LinearRecurrence[{3, -3, 1}, {33, 65, 105}, 25]] (* or *) Join[{15}, Table[4*n^2 + 12*n - 7, {n, 2, 25}]] (* G. C. Greubel, Oct 12 2016 *)
PROG
(PARI) Vec(x*(15-12*x+11*x^2-6*x^3)/(1-x)^3 + O(x^60))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Oct 12 2016
STATUS
approved