A160017 Lodumo_2 of Thue-Morse sequence A010060.
0, 1, 3, 2, 5, 4, 6, 7, 9, 8, 10, 11, 12, 13, 15, 14, 17, 16, 18, 19, 20, 21, 23, 22, 24, 25, 27, 26, 29, 28, 30, 31, 33, 32, 34, 35, 36, 37, 39, 38, 40, 41, 43, 42, 45, 44, 46, 47, 48, 49, 51, 50, 53, 52, 54, 55, 57, 56, 58, 59, 60, 61, 63, 62, 65, 64, 66, 67, 68, 69, 71, 70, 72
Offset: 0
Programs
-
PARI
e=-2;o=-1; vector(100, n, if(hammingweight(n-1)%2, o+=2, e+=2)) \\ Charles R Greathouse IV, Mar 29 2013
Formula
a(n)=lod_2(A010060(n)).
Extensions
Corrected by R. J. Mathar, May 02 2009
Comments