cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A184412 "Types" (parities of i and j) when all the numbers i+j/r are ranked, where r=sqrt(2), i>=0, j>=0.

Original entry on oeis.org

4, 3, 2, 4, 1, 4, 3, 2, 3, 4, 2, 1, 4, 3, 1, 2, 4, 3, 4, 2, 1, 3, 4, 3, 2, 1, 2, 4, 3, 4, 1, 2, 1, 4, 3, 4, 3, 2, 1, 2, 3, 4, 3, 2, 4, 1, 2, 1, 4, 3, 4, 1, 3, 2, 1, 4, 2, 3, 4, 3, 2, 4, 1, 2, 3, 1, 4, 3, 2, 4, 1, 3, 2, 1, 4, 2, 3, 4, 1, 3, 2, 4, 1, 4, 2, 3, 2, 4, 3, 2, 4, 1, 3, 2, 3, 1
Offset: 1

Views

Author

Clark Kimberling, Jan 13 2011

Keywords

Examples

			See the examples at A184399-A184402 and A184410-A184411.
		

Crossrefs

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