OFFSET
0,3
LINKS
Roland Bacher, Counting Packings of Generic Subsets in Finite Groups, Electr. J. Combinatorics, 19 (2012), #P7. - From N. J. A. Sloane, Feb 06 2013
FORMULA
Inverse binomial transform of A007559. E.g.f.: exp(-x)/(1-3*x)^(1/3). - Vladeta Jovovic, Dec 17 2003
a(n) = 3(n-1)(a(n-1)+a(n-2)), n>1. - Gary Detlefs, May 16 2010
a(n) ~ Gamma(2/3) * 3^(n + 1/2) * n^(n-1/6) / (sqrt(2*Pi) * exp(n + 1/3)). - Vaclav Kotesovec, Oct 31 2017
EXAMPLE
3= 3*(1+0), 18 =6*(0+3), 189=9*(18+3), 2484=12*(189+18)... [From Gary Detlefs, May 16 2010]
MAPLE
k := 3; d := proc(n) global k; option remember; if n = 0 then RETURN(1) end if; if n = 1 then RETURN(0) end if; k*(n - 1)*(d(n - 1) + d(n - 2)) end proc;
MATHEMATICA
d[n_, k_] := d[n, k] = k(n-1)(d[n-1, k] + d[n-2, k]);
d[0, _] = 1; d[1, _] = 0;
a[n_] := d[n, 3];
Table[a[n], {n, 0, 19}] (* Jean-François Alcover, Feb 20 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 02 2003
STATUS
approved