OFFSET
0,5
COMMENTS
PROG
(PARI) a(n) = if (n==1, 0, if ((n%3) == 0, 1, if ((n%3)==1, my(k=(n-1)/3, aa = a(2*k+1)); aa+sign(aa), my(k=(n+1)/3, aa = a(2*k-1)); aa+sign(aa)))); \\ Michel Marcus, Jul 03 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Munn, Jun 30 2020
STATUS
approved