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 A337822 #28 Feb 22 2021 20:12:47 %S A337822 1,2,8,3,9,20,10,21,11,4,12,5,13,14,6,15,7,16,30,17,31,18,32,19,33,52, %T A337822 34,53,35,54,36,55,37,22,38,23,39,24,40,25,41,42,26,43,27,44,28,45,29, %U A337822 46,68,47,69,48,70,49,71,50,72,51,73,100,74,101,75,102,76 %N A337822 Permutation of the natural numbers formed by numbering an infinite square grid by a counterclockwise diamond spiral and visiting them by a counterclockwise stair step spiral. %H A337822 Kevin Ryde, <a href="/A337822/b337822.txt">Table of n, a(n) for n = 1..10000</a> %H A337822 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %F A337822 a(A102083(n)) = A102083(n) and a(A102083(n)+1) = A102083(n)+1. %e A337822 The path begins: %e A337822 . %e A337822 ---33 %e A337822 | %e A337822 34 19--32 %e A337822 | %e A337822 35 20---9 18--31 48 %e A337822 | | | %e A337822 36 21--10 3---8 17--30 47 %e A337822 | | | %e A337822 37 22 11---4 1---2 7--16 29 46 %e A337822 | | %e A337822 38 23 12---5 6--15 28 45 %e A337822 | | %e A337822 39 24 13--14 27 44 %e A337822 . %e A337822 40 25 26 43 %e A337822 . %e A337822 41 42 %e A337822 . %Y A337822 Cf. A102083. %Y A337822 Diamond spiral coordinates (but 0-based): A010751, A305258. %Y A337822 Same type of visit on other types of spirals: A334619, A337838. %K A337822 nonn %O A337822 1,2 %A A337822 _Mohammed Yaseen_, Sep 24 2020