A342562 List points (x,y,z) having integer coordinates, sorted first by R=x^2+y^2+z^2 and in case of ties, then by z and last by polar angle 0 <= phi < 2*Pi in a polar coordinate system. Sequence gives y-coordinates.
0, 0, 0, 1, 0, -1, 0, 0, 1, 0, -1, 1, 1, -1, -1, 0, 1, 0, -1, 1, 1, -1, -1, 1, 1, -1, -1, 0, 0, 2, 0, -2, 0, 0, 1, 0, -1, 0, 2, 0, -2, 1, 2, 2, 1, -1, -2, -2, -1, 0, 2, 0, -2, 0, 1, 0, -1, 1, 1, -1, -1, 1, 2, 2, 1, -1, -2, -2, -1, 1, 2, 2, 1, -1, -2, -2, -1, 1, 1, -1, -1, 0, 2, 0, -2, 2, 2, -2, -2, 0, 2, 0, -2
Offset: 0
Examples
See A342561.
Links
- Hugo Pfoertner, Table of n, a(n) for n = 0..10130
Programs
-
PARI
A342562_vec=concat([[P[2] | P<-shell(n)] | n<-[0..7]]) \\ See A342561 for shell(). - M. F. Hasler, Apr 27 2021