OFFSET
0,3
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9,-27,27).
FORMULA
G.f.: 3x^2/(1-3x)^3.
a(0)=0, a(1)=0, a(2)=3, a(n)=9*a(n-1)-27*a(n-2)+27*a(n-3). - Harvey P. Dale, Dec 18 2013
From Amiram Eldar, Jan 12 2021: (Start)
Sum_{n>=2} 1/a(n) = 2 * (1 - 2 * log(3/2)).
Sum_{n>=2} (-1)^n/a(n) = 2*(4*log(4/3) - 1). (End)
a(n) = 3*A027472(n+1). - R. J. Mathar, Jul 26 2022
MAPLE
seq(n*(n-1)*3^(n-1)/2, n=0..27);
MATHEMATICA
Table[(n(n-1)3^(n-1))/2, {n, 0, 30}] (* or *) LinearRecurrence[{9, -27, 27}, {0, 0, 3}, 30] (* Harvey P. Dale, Dec 18 2013 *)
PROG
(PARI) a(n)=n*(n-1)*3^(n-1)/2 \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Emeric Deutsch, Apr 22 2007
STATUS
approved