OFFSET
0,18
COMMENTS
A131852(n) = Im(z(n));
LINKS
R. Zumkeller, Table of n, a(n) for n = 0..10000
FORMULA
z(n) = if n=0 then (0, 0) else z(floor(n/2))*(0, 1) + (n mod 2, 0), complex multiplication.
MATHEMATICA
z[0] = 0; z[n_] := z[n] = z[Floor[n/2]]*I + Mod[n, 2]; Table[z[n] // Re, {n, 0, 110}] (* Jean-François Alcover, Jul 03 2013 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Reinhard Zumkeller, Jul 22 2007
STATUS
approved