login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A145652 a(1)=1. a(n) = the largest integer such that the finite sequence (a(n-1),a(n-2),...a(n-a(n))) occurs somewhere as a subsequence in the finite sequence (a(1),a(2),...,a(n-1)). 1
1, 1, 2, 1, 3, 1, 3, 3, 2, 1, 2, 3, 5, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 3, 4, 1, 1, 2, 2, 2, 3, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
a(n+12) = a(n) for all n >= 14.
LINKS
"Hagman", Sci Math Thread
EXAMPLE
The subsequence of terms a(27) through a(29) in reversed order is (a(29),a(28),a(27)) = (3,3,2). This occurs in the first 29 terms of sequence A145652 like so: 1,1,2,1,3,1,(3,3,2),1,2,3,5,1,1,2,2,2,3,2,2,5,1,1,2,2,2,3,3. On the other hand, the subsequence of terms a(26) to a(29) in reversed order, (3,3,2,2) does not occur anywhere among the first 29 terms of sequence A145652. Since there are three terms in (3,3,2), then a(30) = 3.
CROSSREFS
Sequence in context: A349918 A244797 A308659 * A368290 A111248 A100714
KEYWORD
nonn
AUTHOR
Leroy Quet, Oct 15 2008, corrected Oct 20 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 10:38 EDT 2024. Contains 371791 sequences. (Running on oeis4.)