A330239 Minimum circular (strong) similarity of a length-n binary word.
0, 0, 1, 2, 3, 4, 3, 4, 5, 6, 5, 6, 7, 8, 7, 8, 9, 10, 9, 10, 11, 12, 11, 12, 13, 14, 15, 14, 15, 16, 15, 16, 17, 18, 17, 18
Offset: 1
Examples
For n = 7, one string achieving a(7) = 3 is 0001011.
Links
- Michael S. Branicky, Python program
Programs
-
Python
# see links for faster version from itertools import product def css(k, n): cs = ((k>>i) | ((((1<1 else 0 print([a(n) for n in range(1, 16)]) # Michael S. Branicky, Jan 15 2024
Extensions
a(31)-a(36) from Michael S. Branicky, Jan 15 2024
Comments