OFFSET
0,3
COMMENTS
Previous name was: A simple grammar.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..330
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 712
FORMULA
E.g.f.: (-1/3)*LambertW(-3*x).
For n>0, a(n) = (3*n)^(n-1). - Vaclav Kotesovec, Sep 30 2013
a(n) = [x^n] x/(1 - 3*n*x). - Ilya Gutkovskiy, Oct 12 2017
MAPLE
spec := [S, {S=Prod(B, B, B, Z), B=Set(S)}, labeled]: seq(combstruct[count](spec, size=n), n=0..20);
MATHEMATICA
With[{nn=20}, CoefficientList[Series[-1/3 LambertW[-3x], {x, 0, nn}], x] Range[0, nn]!] (* Harvey P. Dale, Jun 01 2013 *)
PROG
(PARI) x='x+O('x^50); concat([0], Vec(serlaplace((-1/3)*lambertw(-3*x)))) \\ G. C. Greubel, Nov 05 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
encyclopedia(AT)pommard.inria.fr, Jan 25 2000
EXTENSIONS
New name using e.g.f. by Vaclav Kotesovec, Sep 30 2013
STATUS
approved