OFFSET
1,2
COMMENTS
Endpoints are excluded when counting the number of distinct terms enclosed.
Endpoints are included when comparing subsequences enclosed.
LINKS
Neal Gersh Tolunsky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(2) = 2, so 2's enclose 2 distinct terms. For example: a(2..6) = 2,1,3,1,2 enclosing the two distinct values in 1,3,1.
a(3) = 1, so 3's enclose 1 distinct term. In this case, there are no subsequences enclosed by a pair of 3s.
a(7) = 4: a(7) cannot be 1 as this would repeat the subsequence [1,2,1], which was seen before at a(1..3). 2 and 3 would not enclose a(2) = 2 and a(3) = 1 distinct terms respectively. So a(7) = 4, which has not occurred thus far.
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, Jan 26 2025
STATUS
approved
