OFFSET
0,4
COMMENTS
A composition of n is a finite sequence of positive integers with sum n. It is complete if it covers an initial interval of positive integers.
EXAMPLE
The a(1) = 1 through a(8) = 12 compositions (empty column not shown):
(1) (12) (112) (122) (123) (1123) (1223)
(21) (121) (212) (132) (1132) (1232)
(211) (221) (213) (1213) (1322)
(231) (1231) (2123)
(312) (1312) (2132)
(321) (1321) (2213)
(2113) (2231)
(2131) (2312)
(2311) (2321)
(3112) (3122)
(3121) (3212)
(3211) (3221)
MATHEMATICA
normQ[m_]:=Or[m=={}, Union[m]==Range[Max[m]]];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], normQ[#]&&normQ[Length/@Split[Sort[#]]]&]], {n, 0, 10}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 21 2019
EXTENSIONS
a(21)-a(38) from Alois P. Heinz, Jul 06 2020
STATUS
approved