OFFSET
0,3
COMMENTS
A word is squarefree if it has no subsequence of the form XX.
This sequence has similarities with A007814, the lexicographically earliest squarefree sequence of nonnegative integers.
Is this sequence unbounded?
LINKS
Rémy Sigrist, C program for A309011
EXAMPLE
For n = 0:
- a(0) = 0.
For n = 1:
- "000" is not squarefree,
- "101" is squarefree,
- hence a(1) = 1,
For n = 2:
- "01010" is not squarefree,
- "11011" is not squarefree,
- "21012" is squarefree,
- hence a(2) = 2,
For n = 3:
- "0210120" is squarefree,
- hence a(3) = 0.
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jul 06 2019
STATUS
approved