A361383 a(n) is the number of locations 1..n-1 which can be reached starting from location i=a(n-1), where jumps from location i to i +- a(i) are permitted (within 1..n-1); a(1)=1. See example.
1, 1, 2, 3, 3, 4, 5, 4, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 15, 16, 15, 16, 15, 18, 17, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 22, 24, 22, 24, 23, 24, 26, 26, 26, 26, 26, 26, 26, 26, 26, 29, 32, 33, 35, 32, 35, 32, 35, 32, 35, 32, 35, 32, 36, 35, 37
Offset: 1
Keywords
Examples
We find a(8)=4 by first looking at the previous term in the sequence so far (1,1,2,3,3,4,5), which is a(7)=5. This tells us to start at location i=5. Permitted steps can reach 4 locations as follows: 1, 1, 2, 3, 3, 4, 5 1<-------3 1, 1, 2, 3, 3, 4, 5 1<-1->2 Steps from each of these locations cannot reach anything new, so a(8)=4. The reachable terms are: 1, 1, 2, 3, 3, 4, 5 1 1 2 3
Links
- Samuel Harkness, Table of n, a(n) for n = 1..10000
Extensions
More terms from Samuel Harkness, Mar 10 2023
Comments