OFFSET
1,3
COMMENTS
A new value is always followed by 1.
LINKS
Samuel Harkness, Table of n, a(n) for n = 1..10000
Samuel Harkness, MATLAB program
EXAMPLE
a(2)=1 because the subsequence (1,1) has not occurred before.
a(8)=3 because every smaller number would form a subsequence that has occurred already. a(8) cannot be 1 because this would make the subsequence (1,1), which was seen before at i=1,2. a(8) cannot be 2 because then we would have the subsequence (2,1,2) for a second time (first at i=3-5): 1,1,2,1,2,2,1,2
PROG
(MATLAB) See Links section.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Neal Gersh Tolunsky, Oct 10 2023
STATUS
approved