A319290 The y coordinates of the shell enumeration of N X N where N = {0, 1, 2, ...}(A319514).
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, 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, 4, 5, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9
Offset: 0
Keywords
Links
- Peter Luschny, Table of n, a(n) for n = 0..10000
Crossrefs
Cf. A319514.
Programs
-
Julia
function A319290(n) m = x = isqrt(n) y = n - x^2 x <= y && ((x, y) = (2x - y, x)) isodd(m) ? x : y end
Comments