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”).

A163897
a(n) = A163531(n)-A163547(n).
5
0, 0, 2, 4, -2, -8, -6, 0, 0, 0, 2, 16, 16, 12, 6, 0, 0, 8, 10, 24, 28, 16, 0, 0, 0, 0, 10, 28, 24, 16, 32, 40, 48, 48, 24, 20, -2, -24, -40, -36, -40, -44, -64, -60, -56, -48, -42, -56, -42, -36, -20, -16, -8, 0, 16, 8, 14, 36, 34, 24, 28, 28, 18, 24, 16, 8, -8, 0, -10
OFFSET
0,3
COMMENTS
This sequence gives the difference of squares of distance from the origin to the n-th term, in the Peano curve (A163334) and the Hilbert curve (A163357) on an N x N grid. Because the Hilbert curve is based on powers of 4 and the Peano curve on powers of 9, the graph of this sequence contains dramatic swings. [Edited to Peano vs Hilbert by Kevin Ryde, Aug 28 2020]
LINKS
CROSSREFS
Cf. A165480 (positions of 0's).
Sequence in context: A279354 A278220 A174147 * A278541 A278257 A278533
KEYWORD
sign
AUTHOR
Antti Karttunen, Sep 19 2009
STATUS
approved