|
|
A057212
|
|
n-th run has length n.
|
|
7
|
|
|
0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
REFERENCES
|
K. H. Rosen, Discrete Mathematics and its Applications, 1999, fourth edition, page 79, exercise 10 (g).
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (1+(-1)^A002024(n))/2, where A002024(n)=round(sqrt(2*n)). - Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Feb 23 2003
a(n)=A163334(n) mod 2 = A163336(n) mod 2 = A163357(n) mod 2 = A163359(n) mod 2, i.e. the array gives the parity of elements at the successive antidiagonals (alternating between 0 and 1) of square arrays constructed from ANY Hilbert curve starting from zero located at the top left corner of a square grid (and using only N,E,S,W steps of length one). - Antti Karttunen, Oct 22 2012
|
|
MAPLE
|
# alternative Maple program:
T:= n-> [irem(1+n, 2)$n][]:
|
|
MATHEMATICA
|
|
|
PROG
|
(Haskell)
a057212 n = a057212_list !! (n-1)
a057212_list = concat $ zipWith ($) (map replicate [1..]) a000035_list
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
Ben Tyner (tyner(AT)phys.ufl.edu), Sep 27 2000
|
|
STATUS
|
approved
|
|
|
|