OFFSET
0,5
COMMENTS
A022553(n) is the number of primitive 2n-bead balanced binary necklaces (corresponding to Lyndon words), and A000048 is the number of those that are self-complementary (i.e., can be rotated so that all beads change color). Their difference 2*a(n) is the number of those that are not self-complementary. a(n) is the number pairs of distinct complements.
Doubled entries: 0, 0, 0, 2, 6, 22, 70, 236, 784, 2672, 9174, 31972, 112462, 399708, 1432028, ...
Sequences counting 2n-bead balanced binary necklaces:
primitive imprimitive
+-----------------------+---------+
+-----------------------+---------+
+-----------------------+---------+
LINKS
Tilman Piesk, Table of n, a(n) for n = 0..1000
EXAMPLE
0 | 1 1 | 0 0
1 | 1 1 | 0 0
2 | 1 1 | 0 0
3 | 3 1 | 2 1
4 | 8 2 | 6 3
5 | 25 3 | 22 11
6 | 75 5 | 70 35
7 | 245 9 | 236 118
8 | 800 16 | 784 392
9 | 2700 28 | 2672 1336
10 | 9225 51 | 9174 4587
Examples for n=5 with necklaces of length 10:
The total number of necklaces is A003239(5) = 26.
Only A386946(5) = 1 of them is periodic, namely 0101010101.
The other A022553(5) = 25 are primitive.
A000048(5) = 3 among those are self-complementary:
0000011111
0001011101
0010011011
The remaining 22 necklaces form a(5) = 11 complement pairs:
0000101111 0000111101
0000110111 0001111001
0000111011 0001001111
0001010111 0001110101
0001011011 0010011101
0001100111 0001110011
0001101011 0010100111
0001101101 0010010111
0010101011 0011010101
0010101101 0010110101
0010110011 0011001101
CROSSREFS
KEYWORD
nonn
AUTHOR
Tilman Piesk, Aug 07 2025
STATUS
approved
