OFFSET
3,3
COMMENTS
Then EM(n+1) is the complement of the bit following the most recent appearance of S.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 3..50000
Rémy Sigrist, Perl program for A308174
EXAMPLE
Tableau showing calculation of terms 3 through 13
1 2 3 4 5 6 7 8 9 10 11 12 13 n
0 1 0 0 1 1 0 1 0 1 1 1 0 A038219(n)
- - 0 0 01 1 10 01 010 101 011 11 110 S
- - 1 1 2 1 2 2 3 3 3 2 3 s = A308174(n)
- - 1 3 1 5 2 4 1 6 4 10 5 previous
- - 2 1 4 1 5 4 8 4 7 2 8 t = A308175(n)
"Previous" = index of start of most recent previous occurrence of S; s = |S|; t = n - "previous" = A308175(n)
PROG
(Perl) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 21 2019, corrected and extended May 21 2019
EXTENSIONS
More terms from Rémy Sigrist, May 21 2019
STATUS
approved