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

%I #5 Jun 17 2018 14:49:51

%S 1,10,155,3035,70500,1877083,56019305,1844512570,66219313755,

%T 2568394851483,106837050484924,4737487302902715,222819378516865825,

%U 11068264704881204698,578536038611685742843,31718762374848254987147,1818933941414434687198820

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

%H Alois P. Heinz, <a href="/A306034/b306034.txt">Table of n, a(n) for n = 0..400</a>

%F E.g.f.: exp(Sum_{j=1..10} (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+10))

%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..10)), x, n+1), x, n):

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

%Y Column k=10 of A306024.

%Y Cf. A305970.

%K nonn

%O 0,2

%A _Alois P. Heinz_, Jun 17 2018