OFFSET
1,3
COMMENTS
Note that location n-1 itself is counted as a term which can reach i=n-1.
Conjecture: a(n) is also the largest number such that starting point i=n can reach every previous location (with a(1)=1 and the same rule for jumps as in the current name).
A047619 appears to be the indices of 1's in this sequence.
A023758 appears to be the indices of terms for which a(n)=n-1.
A089633 appears to be the distinct values of the sequence (and its complement A158582 the missing values).
The sequence appears to consist of monotonically increasing runs of length 4.
LINKS
Kevin Ryde, Table of n, a(n) for n = 1..10000
Kevin Ryde, C Code
EXAMPLE
a(6)=5 because there are 5 starting terms from which i=5 can be reached:
1, 1, 2, 3, 1
1->1->2---->1
We can see that i=1,2,3 and trivially 5 can reach i=5. i=4 can also reach i=5:
1, 1, 2, 3, 1
1<-------3
1->1->2---->1
This is a total of 5 locations, so a(6)=5.
PROG
(C) See links.
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, May 12 2023
EXTENSIONS
a(24) onwards from Kevin Ryde, May 17 2023
STATUS
approved