login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A329145 Number of non-necklace compositions of n. 3
0, 0, 1, 3, 9, 19, 45, 93, 197, 405, 837, 1697, 3465, 7011, 14193, 28653, 57825, 116471, 234549, 471801, 948697, 1906407, 3829581, 7689357, 15435033, 30973005, 62137797, 124630149, 249922665, 501078345, 1004468157, 2013263853, 4034666121, 8084640465 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
A necklace composition of n is a finite sequence of positive integers summing to n that is lexicographically minimal among all of its cyclic rotations.
LINKS
FORMULA
a(n) = 2^(n-1) - A008965(n).
EXAMPLE
The a(3) = 1 through a(6) = 19 compositions:
(21) (31) (32) (42)
(121) (41) (51)
(211) (131) (141)
(212) (213)
(221) (231)
(311) (312)
(1121) (321)
(1211) (411)
(2111) (1131)
(1221)
(1311)
(2112)
(2121)
(2211)
(3111)
(11121)
(11211)
(12111)
(21111)
MATHEMATICA
neckQ[q_]:=Array[OrderedQ[{q, RotateRight[q, #]}]&, Length[q]-1, 1, And];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], !neckQ[#]&]], {n, 10}]
CROSSREFS
Numbers whose prime signature is not a necklace are A329142.
Binary necklaces are A000031.
Necklace compositions are A008965.
Lyndon compositions are A059966.
Numbers whose reversed binary expansion is a necklace are A328595.
Sequence in context: A051894 A146393 A147431 * A348377 A147334 A147463
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 10 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)