OFFSET
0,2
COMMENTS
Essentially the same as A045943. - R. J. Mathar, Mar 28 2012
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
Binomial transform of [1, 2, 4, -1, 1, -1, 1, ...].
From Colin Barker, Sep 24 2017: (Start)
G.f.: (1 + 3*x^2 - x^3) / (1 - x)^3.
a(n) = 3*n*(1 + n) / 2 for n>0.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>3. (End)
EXAMPLE
a(3) = 18 = (1, 3, 3, 1) dot (1, 2, 4, -1) = (1 + 6 + 12 -1).
a(3) = 18 = sum of row 3 terms of triangle A134478: (3 = 4 + 5 + 6).
MATHEMATICA
Join[{1}, Table[Sum[n + k, {k, 0, n}], {n, 1, 50}]] (* G. C. Greubel, Sep 24 2017 *)
PROG
(PARI) concat([1], for(n=1, 50, print1(sum(k=0, n, n+k), ", "))) \\ G. C. Greubel, Sep 24 2017
(PARI) Vec((1 + 3*x^2 - x^3) / (1 - x)^3 + O(x^60)) \\ Colin Barker, Sep 25 2017
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Gary W. Adamson, Oct 27 2007
EXTENSIONS
Terms a(14) onward added by G. C. Greubel, Sep 24 2017
STATUS
approved