OFFSET
0,5
COMMENTS
A composition of n is a finite sequence of positive integers summing to n.
EXAMPLE
The a(4) = 2 through a(4) = 18 compositions:
(112) (113) (114)
(121) (122) (132)
(131) (141)
(212) (213)
(1112) (231)
(1121) (312)
(1211) (1113)
(1122)
(1131)
(1212)
(1221)
(1311)
(2112)
(2121)
(11112)
(11121)
(11211)
(12111)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], !Less@@#&&!GreaterEqual@@#&]], {n, 0, 15}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 11 2020
STATUS
approved