<P>It appears that, taking A100004:<BR>a(n) = (-1/n), where (k/n) is the Kronecker symbol</P>
<P>and replacing +1 with 0 and -1 with 1, we obtain A038189:<BR>Bit to left of least significant bit in binary expansion of n.</P>
<P>Alternatively, replacing -1 with 0 we obtain (allowing for offset) A014577:<BR>The regular paper-folding (or dragon curve) sequence.<BR></P>
<P>Jeremy Gardiner</P>