OFFSET
0,4
COMMENTS
A composition of n is a finite sequence of positive integers with sum n. a(n) is the number of strict compositions of n with no two of their adjacent first-differences equal, or with no 0's in their second-differences.
LINKS
EXAMPLE
The a(1) = 1 through a(8) = 19 compositions:
(1) (2) (3) (4) (5) (6) (7) (8)
(12) (13) (14) (15) (16) (17)
(21) (31) (23) (24) (25) (26)
(32) (42) (34) (35)
(41) (51) (43) (53)
(132) (52) (62)
(213) (61) (71)
(231) (124) (125)
(312) (142) (134)
(214) (143)
(241) (152)
(412) (215)
(421) (251)
(314)
(341)
(413)
(431)
(512)
(521)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@Select[IntegerPartitions[n], UnsameQ@@#&], !MemberQ[Differences[#, 2], 0]&]], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 31 2019
STATUS
approved