OFFSET
1,2
COMMENTS
A period of a string x of length n is an integer p such that x[i] = x[i+p] for 1 <= i <= n-p.
From Jeffrey Shallit, Jan 17 2019: (Start)
Alternatively, the number of distinct sets of border lengths, restricted to at most n/2 in length, possible over all binary strings of length n. A border of a word is a nonempty prefix that is also a suffix.
Alternatively, the number of distinct sets of lengths of palindromes that can begin a binary word of length n. (End)
EXAMPLE
For n = 5, the possible sets of periods of length >=3 are {5}, {3,5}, {4,5}, {3,4,5}, achieved by the strings 00001, 01001, 00010, 00100, respectively.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jeffrey Shallit, Oct 01 2016
EXTENSIONS
a(21)-a(42) from Lars Blomberg, Oct 08 2016
STATUS
approved