OFFSET
1,4
COMMENTS
The exponent is negative when the denominator (A007306) is even. These occur as every third term.
MAPLE
[seq(exp_of_2(SternBrocot0_1frac(j)), j=1..128)];
SternBrocot0_1frac := proc(n) local m; m := n + 2^floor_log_2(n); SternBrocotTreeNum(m)/SternBrocotTreeDen(m); end;
exp_of_2 := proc(x) local f, m; f := ifactors(x)[2]; for m in f do if(2 = m[1]) then RETURN(m[2]); fi; od; RETURN(0); end;
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 22 2001
STATUS
approved