OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
FORMULA
G.f.: -x*(1+121*x+561*x^2+311*x^3+14*x^4) / (x-1)^5.
a(0) = 0, a(n) = 1+(8+(27+(48+42*(n-1))*(n-1))*(n-1))*(n-1) for n>0.
EXAMPLE
a(1) = 1: aaaaaaaaaa (with 1-ary alphabet {a}).
MAPLE
a:= n-> `if`(n=0, 0, (x-> 1+(8+(27+(48+42*x)*x)*x)*x)(n-1)):
seq(a(n), n=0..40);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Sep 02 2011
STATUS
approved