login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A292796 Number of sets of nonempty words with a total of n letters over n-ary alphabet such that within each word every letter of the alphabet is at least as frequent as the subsequent alphabet letter. 4

%I #16 Jan 02 2021 12:20:01

%S 1,1,3,13,60,326,2065,14508,116845,1039459,10339365,112376487,

%T 1339665295,17256611005,240193792120,3578746993871,56986570945387,

%U 963868021665359,17281651020455445,327058650473873893,6519981694119182165,136489249161324882063

%N Number of sets of nonempty words with a total of n letters over n-ary alphabet such that within each word every letter of the alphabet is at least as frequent as the subsequent alphabet letter.

%H Alois P. Heinz, <a href="/A292796/b292796.txt">Table of n, a(n) for n = 0..450</a>

%F a(n) = [x^n] Product_{j=1..n} (1+x^j)^A226873(j,n).

%F a(n) = A292795(n,n).

%F a(n) ~ c * n!, where c = A247551 = 2.529477472079152648... - _Vaclav Kotesovec_, Sep 28 2017

%e a(0) = 1: {}.

%e a(1) = 1: {a}.

%e a(2) = 3: {aa}, {ab}, {ba}.

%e a(3) = 13: {aaa}, {aab}, {aba}, {baa}, {abc}, {acb}, {bac}, {bca}, {cab}, {cba}, {aa,a}, {ab,a}, {ba,a}.

%p b:= proc(n, i, t) option remember; `if`(t=1, 1/n!,

%p add(b(n-j, j, t-1)/j!, j=i..n/t))

%p end:

%p g:= (n, k)-> `if`(k=0, `if`(n=0, 1, 0), n!*b(n, 0, k)):

%p h:= proc(n, i, k) option remember; `if`(n=0, 1, `if`(i<1, 0,

%p add(h(n-i*j, i-1, k)*binomial(g(i, k), j), j=0..n/i)))

%p end:

%p a:= n-> h(n$3):

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

%t b[n_, i_, t_] := b[n, i, t] = If[t == 1, 1/n!, Sum[b[n - j, j, t - 1]/j!, {j, i, n/t}]];

%t g[n_, k_] := If[k == 0, If[n == 0, 1, 0], n!*b[n, 0, k]];

%t h[n_, i_, k_] := h[n, i, k] = If[n == 0, 1, If[i < 1, 0, Sum[h[n - i*j, i - 1, k]*Binomial[g[i, k], j], {j, 0, n/i}]]];

%t a[n_] := h[n, n, n];

%t a /@ Range[0, 30] (* _Jean-François Alcover_, Jan 02 2021, after _Alois P. Heinz_ *)

%Y Main diagonal of A292795.

%Y Row sums of A319498.

%Y Cf. A226873, A292713.

%K nonn

%O 0,3

%A _Alois P. Heinz_, Sep 23 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)