OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = a(n-1) + 27*n - 14 for n>0, a(0)=0. - Vincenzo Librandi, Aug 04 2010
G.f.: x*(13 + 14*x)/(1 - x)^3 . - R. J. Mathar, Aug 04 2016
E.g.f.: (x/2)*(27*x + 26)*exp(x). - G. C. Greubel, Aug 23 2017
MATHEMATICA
Table[n (27 n - 1)/2, {n, 0, 40}] (* Bruno Berselli, Oct 14 2016 *)
LinearRecurrence[{3, -3, 1}, {0, 13, 53}, 40] (* Harvey P. Dale, Jul 04 2022 *)
PROG
(PARI) a(n)=n*(27*n-1)/2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved