OFFSET
0,2
COMMENTS
A string x of length n is (strongly) quasiperiodic if there exists a string w of length < n such that x can be exactly covered by (possibly overlapping) occurrences of w in x. For example, 01001010 can be covered by 3 occurrences of 010. A string is (weakly) superprimitive if it is not strongly quasiperiodic.
LINKS
A. Apostolico, M. Farach, and C. S. Iliopoulos, Optimal superprimitivity testing for strings, Info. Proc. Letters 39 (1991), 17-20.
Rémy Sigrist, C program for A216215
EXAMPLE
a(4) = 12 because the 6 strings
0001,
0010,
0011,
0100,
0110,
0111
and their complements are the only weakly superprimitive strings of length 4.
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Mar 13 2013
EXTENSIONS
a(17)-a(35) from Rémy Sigrist, Jan 09 2019
STATUS
approved