login
Number of length-n restricted growth strings (RGS) with growth <= nine and first element in [9].
3

%I #5 Jun 17 2018 14:45:42

%S 1,9,126,2229,46791,1126032,30377223,904211997,29347973748,

%T 1029154793775,38706399597879,1551902279238186,65998768155695109,

%U 2964410257125490269,140111251278756345054,6946234487211269640633,360202406323880296650987,19488725004898446787394016

%N Number of length-n restricted growth strings (RGS) with growth <= nine and first element in [9].

%H Alois P. Heinz, <a href="/A306033/b306033.txt">Table of n, a(n) for n = 0..406</a>

%F E.g.f.: exp(Sum_{j=1..9} (exp(j*x)-1)/j).

%p b:= proc(n, m) option remember; `if`(n=0, 1,

%p add(b(n-1, max(m, j)), j=1..m+9))

%p end:

%p a:= n-> b(n, 0):

%p seq(a(n), n=0..25);

%p # second Maple program:

%p a:= n-> n!*coeff(series(exp(add((exp(j*x)-1)/j, j=1..9)), x, n+1), x, n):

%p seq(a(n), n=0..25);

%Y Column k=9 of A306024.

%Y Cf. A305969.

%K nonn

%O 0,2

%A _Alois P. Heinz_, Jun 17 2018