OFFSET
0,2
COMMENTS
Vertical spoke of triangular spiral in A051682. - Paul Barry, Mar 15 2003
LINKS
Ivan Panchenko, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 24*C(n, 1) + 36*C(n, 2); binomial transform of (0, 24, 36, 0, 0, 0, ...). - Paul Barry, Mar 15 2003
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3); a(0)=0, a(1)=24, a(2)=84. - Harvey P. Dale, Nov 23 2012
G.f.: 12*x*(2+x)/(1-x)^3. - Ivan Panchenko, Nov 13 2013
a(n) = 2*A045945(n). - Michel Marcus, Nov 13 2013
a(n) = 12*A005449(n). - R. J. Mathar, Feb 08 2016
From Amiram Eldar, Jan 14 2021: (Start)
Sum_{n>=1} 1/a(n) = 1/2 - Pi/(12*sqrt(3)) - log(3)/4.
Sum_{n>=1} (-1)^(n+1)/a(n) = -1/2 + Pi/(6*sqrt(3)) + log(2)/3. (End)
MATHEMATICA
Table[6n(3n+1), {n, 0, 40}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 24, 84}, 40] (* Harvey P. Dale, Nov 23 2012 *)
PROG
(PARI) a(n)=18*n^2+6*n \\ Charles R Greathouse IV, Feb 19 2017
CROSSREFS
KEYWORD
nonn,nice,easy
AUTHOR
STATUS
approved