OFFSET
1,2
COMMENTS
Complement of A235331.
From Robert Israel, Feb 02 2018: (Start)
2*n is in the sequence if and only if n is in the sequence.
2*n+1 is in the sequence if and only if n*(n+1) is odious. (End)
MAPLE
select(t -> convert(convert(t^2, base, 2), `+`)::even, [$0..200]); # Robert Israel, Feb 02 2018
MATHEMATICA
Join[{0}, Select[Range[200], !OddQ[DigitCount[#^2, 2][[1]]] &]]
PROG
(Magma) [n: n in [0..200] | IsEven(&+Intseq(n^2, 2))];
(PARI) isok(n) = (hammingweight(n^2) % 2) != 1; \\ Michel Marcus, Jan 31 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 31 2018
STATUS
approved