OFFSET
0,3
COMMENTS
A composition of n is a finite sequence of positive integers summing to n.
The differences of a sequence are defined as if the sequence were increasing, so for example the differences of (3,1,2) are (-2,1).
LINKS
Fausto A. C. Cariboni, Table of n, a(n) for n = 0..70
EXAMPLE
The a(1) = 1 through a(6) = 17 compositions:
(1) (2) (3) (4) (5) (6)
(11) (12) (13) (14) (15)
(21) (22) (23) (24)
(31) (32) (33)
(112) (41) (42)
(121) (113) (51)
(211) (122) (114)
(131) (132)
(212) (141)
(221) (213)
(311) (231)
(1121) (312)
(1211) (411)
(1131)
(1221)
(1311)
(2112)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], UnsameQ@@Differences[#]&]], {n, 0, 15}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 10 2019
EXTENSIONS
More terms from Alois P. Heinz, May 11 2019
STATUS
approved