OFFSET
1,4
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10001
Eric Weisstein's World of Mathematics, Odious Number.
Eric Weisstein's World of Mathematics, Thue-Morse Sequence.
FORMULA
MATHEMATICA
Select[DigitCount[Range[200], 2, 1], OddQ] (* Amiram Eldar, Jul 22 2023 *)
PROG
(PARI) a(n)=hammingweight(2*n-1-hammingweight(n-1)%2) \\ Charles R Greathouse IV, Mar 26 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Aug 26 2007
STATUS
approved