This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A364392 #40 Dec 19 2024 11:46:19 %S A364392 1,1,2,3,4,4,3,6,3,4,4,6,3,5,4,7,5,5,6,6,5,6,6,6,6,7,3,8,5,8,7,5,6,6, %T A364392 7,7,9,5,9,7,5,8,7,8,3,6,9,9,7,6,4,6,6,6,10,7,7,5,10,3,6,7,7,8,3,8,6, %U A364392 5,9,6,4,9,9,5,7,6,5,5,7,5,6,6,6,7,7,9,7 %N A364392 a(1)=1 and thereafter a(n) is the least number of locations 1..n-1 which can be visited in a single path beginning at i=n-1, in which one proceeds from location i to i +- a(i) (within 1..n-1) until no further unvisited location is available. %C A364392 The sequence is 1244 initial terms followed by a repeating block of 4925 terms so that a(n) = a(n-4925) for n >= 6170. - _Kevin Ryde_, Jul 31 2023 %H A364392 Kevin Ryde, <a href="/A364392/b364392.txt">Table of n, a(n) for n = 1..10000</a> %H A364392 Kevin Ryde, <a href="/A364392/a364392_1.gp.txt">PARI/GP code showing periodic</a> %H A364392 <a href="/index/Rec#order_4925">Index entries for linear recurrences with constant coefficients</a>, order 4925. %H A364392 Neal Gersh Tolunsky, <a href="/A364392/a364392.png">Scatterplot of the ordinal transform of the first 6169 terms</a> %e A364392 a(13)=3 because beginning at the most recent location i=n-1=12, where a(12)=6, we can visit (the fewest possible) 3 locations in a single path as follows: %e A364392 1 2 3 4 5 6 7 8 9 10 11 12 location number i %e A364392 1,1,2,3,4,4,3,6,3, 4, 4, 6 a(i) %e A364392 <--------------6 %e A364392 4--------> %e A364392 At i=10, the only jump is back to 10-a(10) = 6, which was already visited, so the path stops. %o A364392 (PARI) \\ See links. %Y A364392 Cf. A360593, A360746, A360745, A364882. %K A364392 nonn,easy %O A364392 1,3 %A A364392 _Neal Gersh Tolunsky_, Jul 21 2023 %E A364392 More terms from _Bert Dobbelaere_, Jul 23 2023