OFFSET
1,2
COMMENTS
Exponents of a(n): A223024.
It seems that this sequence includes about half of the powers of 3. For example, a(50171) = 3^99999. - Charles R Greathouse IV, Mar 05 2014
LINKS
Robert Israel, Table of n, a(n) for n = 1..1058
MAPLE
select(t -> convert(convert(t, base, 2), `+`)::odd, [seq(3^i, i=0..100)]); # Robert Israel, Oct 10 2016
MATHEMATICA
Select[3^Range[32], OddQ[First[DigitCount[#, 2] ] ]&] (* Wouter Meeussen, Feb 09 2014 *)
PROG
(PARI) for(n=0, 100, if(hammingweight(t=3^n)%2, print1(t", "))) \\ Charles R Greathouse IV, Mar 05 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Lopatin and Juri-Stepan Gerasimov, Feb 09 2014
EXTENSIONS
Corrected and more terms added by Robert Israel, Oct 10 2016
STATUS
approved