OFFSET
0
COMMENTS
Equivalently, trajectory of 0 under the morphism 0 -> 0011, 1 -> 1100.
a(n) is the number of 1's, mod 2, in the 2^{odd} positions of the binary representation of n. - Jon Hart, Aug 09 2016
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..16383
Bill Allombert and Alain Lasjaunias, On a family of continued fractions in Q((T^1)) associated to infinite binary words derived from the Thue-Morse sequence, arXiv:2505.20102 [math.NT], 2025. See p. 2.
FORMULA
EXAMPLE
The first few A_k are:
A_0 = 0,
A_1 = 0,0,1,1,
A_2 = 0,0,1,1,0,0,1,1,1,1,0,0,1,1,0,0,
A_3 = 0,0,1,1,0,0,1,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,1,
...
MATHEMATICA
Table[Mod[#, 2] &@ Count[Drop[#, {1, Length@ #, 2}], 1] &@ Reverse@ IntegerDigits[n, 2], {n, 120}] (* Michael De Vlieger, Aug 11 2016 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 04 2016. Thanks to Chai Wah Wu for correcting an error in my initial submission
STATUS
approved
