OFFSET
1,1
LINKS
FORMULA
a(n) = 1-((n-2^[log_2(n)]) mod 3)
MATHEMATICA
Table[1-Mod[n-2^Floor[Log[2, n]], 3], {n, 110}] (* Harvey P. Dale, Dec 25 2017 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Oct 25 2001
STATUS
approved