OFFSET
1
EXAMPLE
MATHEMATICA
r=5^(1/2); u[n_] := Floor[n*r]; (*A022839*)
a[1] = 0; h = 128;
c = (u[#1] &) /@ Range[2h];
d = (Complement[Range[Max[#1]], #1] &)[c]; (*A108598*)
Table[a[d[[n]]] = 1 - a[n], {n, 1, h - 1}]; (*A189091*)
Table[a[c[[n]]] = a[n], {n, 1, h}] (*A189091*)
Flatten[Position[%, 0]] (*A189092*)
Flatten[Position[%%, 1]] (*A189093*)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 16 2011
STATUS
approved