OFFSET
0,5
COMMENTS
A composition with no adjacent equal parts is also called a Carlitz composition, so these are non-twin, non-Carlitz compositions.
LINKS
A. Knopfmacher and H. Prodinger, On Carlitz Compositions, Europ. J. Combinatorics (1998) 19, 579-589.
Wikipedia, Composition (combinatorics)
FORMULA
EXAMPLE
The a(3) = 1 through a(6) = 17 compositions:
(111) (112) (113) (114)
(211) (122) (222)
(1111) (221) (411)
(311) (1113)
(1112) (1122)
(1121) (1131)
(1211) (1221)
(2111) (1311)
(11111) (2112)
(2211)
(3111)
(11112)
(11121)
(11211)
(12111)
(21111)
(111111)
MATHEMATICA
nn=15; CoefficientList[Series[1+x/(1-2x)-x^2/(1-x^2)-1/(1-Sum[x^k/(1+x^k), {k, 1, nn}]), {x, 0, nn}], x]
CROSSREFS
A007582 ranks twin compositions.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 05 2021
STATUS
approved