OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Sela Fried, Counting r X s rectangles in nondecreasing and Smirnov words, arXiv:2406.18923 [math.CO], 2024. See p. 5.
Leo Tavares, Illustration: Star Triangles
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = a(n-1) + 3*n + 9 (with a(0)=0). - Vincenzo Librandi, Nov 26 2010
G.f.: 3*x*(4 - 3*x)/(1 - x)^3. - Arkadiusz Wesolowski, Dec 24 2011
From G. C. Greubel, May 26 2017: (Start)
a(n) = 3*n*(n+7)/2.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
E.g.f.: (3/2)*(8*x + x^2)*exp(x). (End)
From Amiram Eldar, Feb 25 2022: (Start)
Sum_{n>=1} 1/a(n) = 121/490.
Sum_{n>=1} (-1)^(n+1)/a(n) = 4*log(2)/21 - 319/4410. (End)
MATHEMATICA
s=0; lst={}; Do[AppendTo[lst, s+=n], {n, 12, 6!, 3}]; lst (* Vladimir Joseph Stephan Orlovsky, Mar 05 2010 *)
LinearRecurrence[{3, -3, 1}, {0, 12, 27}, 50] (* or *) With[{nn = 50}, CoefficientList[Series[(3/2)*(8*x + x^2)*Exp[x], {x, 0, nn}], x] Range[0, nn]!] (* G. C. Greubel, May 26 2017 *)
PROG
(PARI) x='x+O('x^50); concat([0], Vec(serlaplace((3/2)*(8*x + x^2)*exp(x)))) \\ G. C. Greubel, May 26 2017
(PARI) a(n)=(3*n^2+21*n)/2 \\ Charles R Greathouse IV, Jun 16 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
N. J. A. Sloane, May 15 2009
STATUS
approved