OFFSET
0,3
COMMENTS
Offset is 0 to be consistent with A257250.
A necklace is a finite sequence that is lexicographically minimal among all of its cyclic rotations.
EXAMPLE
The sequence of terms together with their binary expansions and binary indices begins:
0: 0 ~ {}
1: 1 ~ {1}
2: 10 ~ {2}
3: 11 ~ {1,2}
4: 100 ~ {3}
5: 101 ~ {1,3}
7: 111 ~ {1,2,3}
8: 1000 ~ {4}
9: 1001 ~ {1,4}
11: 1011 ~ {1,2,4}
15: 1111 ~ {1,2,3,4}
16: 10000 ~ {5}
17: 10001 ~ {1,5}
19: 10011 ~ {1,2,5}
21: 10101 ~ {1,3,5}
23: 10111 ~ {1,2,3,5}
31: 11111 ~ {1,2,3,4,5}
32: 100000 ~ {6}
33: 100001 ~ {1,6}
35: 100011 ~ {1,2,6}
MATHEMATICA
neckQ[q_]:=Array[OrderedQ[{q, RotateRight[q, #]}]&, Length[q]-1, 1, And];
Select[Range[0, 100], #<=1||neckQ[Rest[IntegerDigits[#, 2]]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 26 2019
STATUS
approved