login
A076849
Let u(1)=1, u(n) = n - abs(u(ceiling(n/2)) - u(floor(n/2))); then a(n) = u(n) - n.
0
0, 0, 1, 0, 2, 0, 0, 0, 3, 0, 1, 0, 1, 0, 1, 0, 4, 0, 2, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 5, 0, 3, 0, 3, 0, 1, 0, 3, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 0, 1, 0, 1, 0, 6, 0, 4, 0, 4, 0, 2, 0, 4, 0, 2, 0, 2, 0, 0, 0, 4, 0, 2, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 4, 0, 2, 0, 2, 0, 0, 0, 2
OFFSET
1,5
CROSSREFS
Sequence in context: A333767 A325165 A374441 * A322977 A321374 A262889
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 23 2002
STATUS
approved