OFFSET
1,5
COMMENTS
This sequence is weakly increasing and unbounded (as A010060 is bounded).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
Rémy Sigrist, PARI program for A338623
FORMULA
a(n) <= a(n+1) <= a(n) + 1.
a(A304588(n)) = n (and this is the first occurrence of n in the sequence).
EXAMPLE
For n = 8:
- the first 8 terms of A010060 are 0, 1, 1, 0, 1, 0, 0, 1,
- the blocks (0, 1) and (1, 0) are repeated, and there are no length-3 repeated block,
- so a(8) = 2.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Nov 04 2020
STATUS
approved