OFFSET
0,1
FORMULA
a(n) = n + 1 - 4*A001316(n). a(0) = -3, a(2n) = a(n) + n, a(2n+1) = 2a(n). - Ralf Stephan, Oct 08 2003
EXAMPLE
For n=17; for m=1,2,3,4,5,6,7,8,9,10 values of A064405 (2^m+17) - 2^m are .... 2,2,2,10,2,2,2,2,2,2, so for n>4 the difference seems always equal to 2, hence a(17)=2
PROG
CROSSREFS
KEYWORD
sign
AUTHOR
Benoit Cloitre, Oct 18 2002
EXTENSIONS
More terms from Lambert Klasen (lambert.klasen(AT)gmx.de), Jan 14 2005
STATUS
approved