OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..200
FORMULA
G.f.: 9/10 + 9/(5*(8+10*sqrt(1-36*x))).
a(0) = 1, a(n) = 1/n * Sum_{j=0..n-1} C(2*n,j)*(n-j)*9^j for n>0.
a(n) ~ 9 * 36^n / (64 * sqrt(Pi) * n^(3/2)). - Vaclav Kotesovec, Sep 07 2014
EXAMPLE
a(2) = 19: aaaa, aabb, aacc, aadd, aaee, aaff, aagg, aahh, aaii, aajj, abba, acca, adda, aeea, affa, agga, ahha, aiia, ajja (with 10-ary alphabet {a,b,c,d,e,f,g,h,i,j}).
MAPLE
a:= n-> `if`(n=0, 1, add(binomial (2*n, j) *(n-j) *9^j, j=0..n-1) /n):
seq(a(n), n=0..20);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Sep 02 2011
STATUS
approved