OFFSET
0,2
COMMENTS
A square is an adjacent pair of repeats, e.g., "aa" or "abcabc". A necklace is a word that may be rotated before being tested (for squares).
Several similar sequences (with same zeros) can be constructed from equivalence classes of the loops.
Higher terms: a(n) > 0 for 30 < n <= 56; no zeros known after a(17).
This is also the number of ternary "circular" squarefree words. The Currie paper proves no 0 entries after a(17). - Jeffrey Shallit, Jul 11 2012
LINKS
J. D. Currie, There are ternary circular square-free words of length n for n >= 18, Elect. J. Combinatorics 9 (2002), Paper N10.
EXAMPLE
a(1)=3, size of {"a","b","c"}; a(6)=18, size of {"abacbc","bacbca",...,"cbabca"}.
CROSSREFS
KEYWORD
hard,nice,nonn
AUTHOR
Paul Parsons (paul.parsons6(AT)btinternet.com)
EXTENSIONS
a(31)-a(36) from Jeffrey Shallit, Jan 22 2019
a(37)-a(48) from Sean A. Irvine, Oct 07 2023
STATUS
approved