This article needs more work.
Please help by expanding it!
Set compositions are compositions of sets.
Number of set compositions over set Np
Denote by

the set of all positive integers no greater than
, and by

the number of set compositions of a
-set (
elements set) in
parts of size
.
Recurrence and initial conditions



Generating function

Associated sequences


Number of set compositions over set N2
Table
From general case for
we get



Based upon recurrence and initial conditions we can establish the table row after row
m\k |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
.. |
 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
. |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
. |
2 |
2 |
0 |
0 |
2 |
6 |
6 |
0 |
0 |
0 |
0 |
0 |
0 |
. |
14 |
3 |
0 |
0 |
0 |
6 |
36 |
90 |
90 |
0 |
0 |
0 |
0 |
. |
222 |
4 |
0 |
0 |
0 |
0 |
24 |
240 |
1080 |
2520 |
2520 |
0 |
0 |
. |
6384 |
5 |
0 |
0 |
0 |
0 |
0 |
120 |
1800 |
12600 |
50400 |
113400 |
113400 |
. |
291720 |
.. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
 |
1 |
1 |
3 |
12 |
66 |
450 |
3690 |
35280 |
385560 |
4740120 |
64751400 |
. |
. |
|
Explicit formula
Lets now prove the equation

From the generating function for
and using the binomial theorem we have

for
because
follow that
and replace
we get

from above finally we conclude that

after equalizing the coefficients next same power of
we get above formula
However, since
we get

Associated sequences
First sequence

giving the sequence (Cf. A080599
)
- {1, 1, 3, 12, 66, 450, 3690, 35280, 385560, 4740120, 64751400, 972972000, 15949256400, 283232149200, 5416632421200, 110988861984000, 2425817682288000, ...}
where this number can be better explained as number of placing of
distinct objects(balls) in
distinct boxes(bins) with condition that in each box can be placed at least 1 object but no more than 2 objects.
Second sequence
Denote by
the number of all compositions of a k-set in parts (subsets) of size 1 or 2. This number is sum of all numbers thats are placed in k-th column of above table. From table we can read that






For example: all compositions of a 3-set {a,b,c} are
({a},{b,c}),({b,c},{a}),({b},{a,c}),({a,c},{b}),({c},{a,b}),({a,b},{c})
({a},{b},{c}),({a},{c},{b}),({b},{a},{c}),({b},{c},{a}),({c},{a},{b}),({c},{b},{a})

giving the sequence (Cf. A105749
)
- {1, 2, 14, 222, 6384, 291720, 19445040, 1781750880, 214899027840, 33007837322880, 6290830003852800, 1456812592995513600, 402910665227270323200, ...}
Number of set compositions over set N3
Table
Using the initial conditions and recurrences mentioned for the general case for
we get



from this recurrence now we can construct the following table row after row
m\k |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
.. |
 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
. |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
. |
3 |
2 |
0 |
0 |
2 |
6 |
14 |
20 |
20 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
. |
62 |
3 |
0 |
0 |
0 |
6 |
36 |
150 |
450 |
1050 |
1680 |
1680 |
0 |
0 |
0 |
0 |
0 |
0 |
. |
5052 |
4 |
0 |
0 |
0 |
0 |
24 |
240 |
1560 |
7560 |
29400 |
90720 |
218400 |
369600 |
369600 |
0 |
0 |
0 |
. |
10871804 |
5 |
0 |
0 |
0 |
0 |
0 |
120 |
1800 |
16800 |
117600 |
667880 |
3137400 |
12243000 |
38880800 |
96096000 |
168168000 |
168168000 |
. |
487424520 |
.. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
. |
 |
1 |
1 |
3 |
13 |
74 |
530 |
4550 |
45570 |
521640 |
6717480 |
96117000 |
1512819000 |
25975395600 |
483169486800 |
9678799930800 |
207733600074000 |
. |
. |
|
for example, suppose that the third row is done, then for the element
of the fourth row from the recurrence we have

Explicit formula
From the generating function for
and using the binomial theorem we have



for
we have
, because
and
follow that

finally we get

from above formula after equalizing of coefficients next to
we get

because
for
follow that only for
expression
is not equal at 0 that means


using property

we can show that

Associated sequences
First sequence

giving the sequence (Cf. A144422
)
- {1, 3, 62, 5052, 1087104, 487424520, 393702654960, 519740602925040, 1046019551260199040, 3046052768591313895680, 12322848899623787148556800, ...}
Second sequence
Denote by
the number of all compositions of a k-set in parts (subsets) of size 1,2 or 3. This number is sum of all numbers thats are placed in k-th column of above table. From table we can read that






For example: all compositions of a 3-set {a,b,c} are
({a,b,c})
({a},{b,c}),({b,c},{a}),({b},{a,c}),({a,c},{b}),({c},{a,b}),({a,b},{c})
({a},{b},{c}),({a},{c},{b}),({b},{a},{c}),({b},{c},{a}),({c},{a},{b}),({c},{b},{a})

, 
giving the sequence (Cf. A189886
)
- {, ...}
Using Mathematica and the formula above we can find for sequence
following terms





See also