OFFSET
1,2
COMMENTS
Endpoints are included when comparing subsequences enclosed by consecutive equal values.
LINKS
Neal Gersh Tolunsky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1 means that consecutive 1s enclose 1 term. For example: a(1..3) = [1,2,1] encloses [2].
a(2) = 2 means that consecutive 2s have length 2. In this case, there are no subsequences enclosed by a pair of 2s.
a(3) = 1 means that consecutive 3s enclose 1 term. For example, a(3..5) = [3,1,3] encloses [1].
a(7) = 4: a(7) cannot be 1 as this would repeat the subsequence [1,3,1], which was seen before at a(3..5). 2 and 3 would not enclose a(2) = 2 and a(3) = 1 terms respectively. So a(7) = 4, which has not occurred thus far.
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, Jan 25 2025
STATUS
approved
