login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A319498 Number T(n,k) of sets of nonempty words with a total of n letters over k-ary alphabet such that for k>0 the k-th letter occurs at least once and within each word every letter of the alphabet is at least as frequent as the subsequent alphabet letter; triangle T(n,k), n>=0, 0<=k<=n, read by rows. 4
1, 0, 1, 0, 1, 2, 0, 2, 5, 6, 0, 2, 16, 18, 24, 0, 3, 39, 80, 84, 120, 0, 4, 106, 323, 432, 480, 720, 0, 5, 245, 1106, 2052, 2820, 3240, 5040, 0, 6, 621, 3822, 10576, 14820, 21480, 25200, 40320, 0, 8, 1431, 13840, 41896, 86724, 124440, 186480, 221760, 362880 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

0,6

COMMENTS

T(n,k) is defined for n,k >= 0.  The triangle contains only the terms with k <= n.  T(n,k) = 0 for k > n.

LINKS

Alois P. Heinz, Rows n = 0..140, flattened

FORMULA

T(n,k) = A292795(n,k) - A292795(n,k-1) for k > 0, T(n,0) = A000007(n).

EXAMPLE

T(3,1) = 2: {aaa}, {aa,a}.

T(3,2) = 5: {aab}, {aba}, {baa}, {ab,a}, {ba,a}.

T(3,3) = 6: {abc}, {acb}, {bac}, {bca}, {cab}, {cba}.

Triangle T(n,k) begins:

  1;

  0, 1;

  0, 1,    2;

  0, 2,    5,     6;

  0, 2,   16,    18,    24;

  0, 3,   39,    80,    84,   120;

  0, 4,  106,   323,   432,   480,    720;

  0, 5,  245,  1106,  2052,  2820,   3240,   5040;

  0, 6,  621,  3822, 10576, 14820,  21480,  25200,  40320;

MAPLE

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

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

    end:

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

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

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

    end:

T:= (n, k)-> h(n$2, k) -`if`(k=0, 0, h(n$2, k-1)):

seq(seq(T(n, k), k=0..n), n=0..12);

CROSSREFS

Columns k=0-1 give: A000007, A000009 (for n>0).

Row sums give A292796.

Main diagonal gives A000142.

First lower diagonal gives A038720 (for n>1).

Cf. A292795, A319495.

Sequence in context: A094721 A301951 A144529 * A011297 A110282 A024308

Adjacent sequences:  A319495 A319496 A319497 * A319499 A319500 A319501

KEYWORD

nonn,tabl

AUTHOR

Alois P. Heinz, Sep 20 2018

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 12 08:51 EDT 2020. Contains 336438 sequences. (Running on oeis4.)