login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A343631
X-coordinate of the points following the 3D spiral defined in A343630.
5
0, 0, 1, 0, -1, 0, 0, 1, 0, -1, 0, 1, -1, -1, 1, 1, 0, -1, 0, 1, -1, -1, 1, 1, -1, -1, 1, 0, 2, 0, -2, 0, 0, 1, 0, -1, 0, 2, 0, -2, 0, 2, 1, -1, -2, -2, -1, 1, 2, 2, 0, -2, 0, 0, 0, 1, -1, 1, -1, -1, 1, 2, 1, -1, -2, -2, -1, 1, 2, 2, 1, -1, -2, -2, -1, 1, 2, 1, -1, -1, 1, 2, 0, -2, 0, 2, -2, -2, 2, 2, 0, -2, 0, 0, 2, 1, -1, -2, -2, -1, 1, 2, 2, -2, -2, 2, 3, 0, -3, 0
OFFSET
0,29
COMMENTS
See the main entry A343630 for details about this 3D generalization of an Ulam type spiral using the Euclidean norm.
Sequences A343632 and A343633 give the y and z coordinates.
The sequence can be seen as a table with row lengths 3*A005875, where A005875(r) is the number of points at distance sqrt(r) from the origin.
Sequence A343641 is the analog for the square spiral variant A343640.
PROG
(PARI) d=1; A343631_vec=concat([[P[1] | P<-S=A343630_row(n, d)]+(#S&&!d*=-1) | n<-[0..8]]) \\ the variable d is necessary to correct the z-scan direction in rows between A004215(2k-1) and A004215(2k).
CROSSREFS
Cf. A343632, A343633 (list of y and z-coordinates).
Cf. A343641 (variant using the sup norm => square spiral).
Cf. A342561 (variant which scans each sphere by increasing z).
Cf. A005875 (number of points on a shell with given radius).
Cf. A004215 (numbers that can't be written as sum of 3 squares => empty shells).
Sequence in context: A358724 A325135 A263577 * A342561 A342562 A343632
KEYWORD
sign
AUTHOR
M. F. Hasler, Apr 28 2021
STATUS
approved