OFFSET
1,2
COMMENTS
Equivalently it represents the squares that are black, counting from bottom left corner and up.
FORMULA
a(1) = 1, a(n) = a(n-1) + 2 + (mod(a(n-1)+1, 8) == 0) - (mod(a(n-1), 8) == 0).
To check if n is white: mod(s, 2) + (1 - 2*mod(s, 2)) * mod(floor((s-1)/8), 2).
MATHEMATICA
sqColor[n_] := Mod[n, 2] + (1 - 2*Mod[n, 2])*Mod[Floor[(n - 1)/8], 2]; Select[Range[64], sqColor[#] == 1 &]
CROSSREFS
KEYWORD
nonn,fini,full,easy
AUTHOR
Jonas Hallgren, Jul 25 2013
STATUS
approved