OFFSET
1,5
COMMENTS
This is a variant of Van Eck's sequence A181391 in which we count distinct runs of consecutive equal values rather than individual terms.
The longest run in the sequence has length 2.
LINKS
Neal Gersh Tolunsky, Table of n, a(n) for n = 1..10000
Neal Gersh Tolunsky, Ordinal transform of 100000 terms
Neal Gersh Tolunsky, First differences of 100000 terms
EXAMPLE
a(10)=4: We find that the most recent occurrence of a(n) = a(9) = 1 is a(3) = 1. In between a(3) and a(8), we find 4 distinct runs: [1]; [0]; [2]; [2,2]. So a(10)=4.
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, Jan 12 2025
STATUS
approved