OFFSET
1,1
FORMULA
Let s(n)=i(n)+j(n)/r be the sequence obtained by arranging in increasing order all the numbers i+j/r, where
r=sqrt(2) and i>=0, j>=0. Then
a(n)=1 if i(n) is odd and j(n) is odd (n in A184399);
a(n)=2 if i(n) is odd and j(n) is even (n in A184401);
a(n)=3 if i(n) is even and j(n) is odd (n in A184400);
a(n)=r if i(n) is even and j(n) is even (n in A184402).
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Clark Kimberling, Jan 13 2011
STATUS
approved