A332381 a(n) is the Y-coordinate of the n-th point of the Peano curve. Sequence A332380 gives X-coordinates.
0, 0, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 2, 2, 1, 1, 2, 2, 3, 3, 4, 4, 3, 3, 2, 2, 3, 3, 2, 2, 1, 1, 2, 2, 1, 1, 0, 0, -1, -1, 0, 0, 1, 1, 0, 0, -1, -1, -2, -2, -1, -1, -2, -2, -3, -3, -2, -2, -3, -3, -4, -4, -3, -3, -2, -2, -1, -1, -2, -2, -1, -1, 0, 0, 1, 1, 0
Offset: 0
Links
Crossrefs
Cf. A332380 (X-coordinates and additional comments).
Programs
-
PARI
{ [R,U,L,D]=[0..3]; p = [R,U,R,D,L,D,R,U,R]; z=0; for (n=0, 76, print1 (imag(z) ", "); z += I^vecsum(apply(d -> p[1+d], digits(n, #p)))) }
Formula
a(9^k) = 0 for any k >= 0.
Comments