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 A057064 #21 Apr 26 2024 03:30:36 %S A057064 1,2,4,5,8,7,11,9,17,16,22,13,23,15,28,29,37,19,34,21,44,36,40,25,54, %T A057064 35,46,47,51,31,67,33,79,53,58,56,82,39,64,60,89,43,87,45,97,88,76,49, %U A057064 120,65,112,77,102,55,104,80,145,84,94,61,142,63,100,114,174 %N A057064 Let P(n) of a sequence s(1),s(2),s(3),... be obtained by leaving s(1),...,s(n) fixed and forward-cyclically permuting every n consecutive terms thereafter; apply P(2) to 1,2,3,... to get PS(2), then apply P(3) to PS(2) to get PS(3), then apply P(4) to PS(3), etc. The limit of PS(n) is A057064. %C A057064 It appears that this is not a permutation of the integers: 3, 6, 10, 12, 14, 18, 20, 24, ... are not terms. - _Michel Marcus_, Feb 19 2016 %C A057064 Indeed, see the first formula here and the first comment in A069829. - _Mikhail Kurkov_, Mar 08 2023 %F A057064 a(n) = A057032(n-1) + 1 for n > 1. - _Sean A. Irvine_, May 19 2022 %e A057064 PS(2) begins with 1,2,4,3,6,5,8; PS(3) with 1,2,4,5,3,6,10; PS(4) with 1,2,4,5,8,3,6. %o A057064 (PARI) get(v, iv) = if (iv > #v, 0, v[iv]); %o A057064 fcp(nbn, nbp, startv, v) = {w = vector(nbn); for (k=1, nbn, j = k % nbp; if (j == 1, jv = startv+k+nbp-2, jv = startv+k-2); w[k] = get(v, jv);); w;} %o A057064 lista(nn) = {v = vector(nn, n, n); print1(v[1], ", ", v[2], ", "); startv = 3; for (n=3, nn, w = fcp(nn-n+1, n-1, startv, v); startv = 2; if (w[1] == 0, break); print1(w[1], ", "); v = w;);} \\ _Michel Marcus_, Feb 19 2016 %Y A057064 Cf. A007062, A057030, A057032, A057033, A057063, A069829. %K A057064 nonn %O A057064 1,2 %A A057064 _Clark Kimberling_, Aug 01 2000 %E A057064 More terms from _Michel Marcus_, Feb 19 2016