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 A319290 #7 Sep 23 2018 05:38:11 %S A319290 0,1,1,0,0,1,2,2,2,3,3,3,3,2,1,0,0,1,2,3,4,4,4,4,4,5,5,5,5,5,5,4,3,2, %T A319290 1,0,0,1,2,3,4,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,6,5,4,3,2,1,0,0,1,2,3, %U A319290 4,5,6,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9 %N A319290 The y coordinates of the shell enumeration of N X N where N = {0, 1, 2, ...}(A319514). %C A319290 See A319514 for comments and references. %H A319290 Peter Luschny, <a href="/A319290/b319290.txt">Table of n, a(n) for n = 0..10000</a> %o A319290 (Julia) %o A319290 function A319290(n) %o A319290 m = x = isqrt(n) %o A319290 y = n - x^2 %o A319290 x <= y && ((x, y) = (2x - y, x)) %o A319290 isodd(m) ? x : y %o A319290 end %Y A319290 Cf. A319514. %K A319290 nonn %O A319290 0,7 %A A319290 _Peter Luschny_, Sep 23 2018