OFFSET
1,3
COMMENTS
Also union of all numbers of the form A131323(n)-k, k=0, 1, 2, or 3.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
MATHEMATICA
tm[0] = 0; tm[n_?EvenQ] := tm[n] = tm[n/2]; tm[n_] := tm[n] = 1 - tm[(n - 1)/2]; Reap[For[n = 0, n <= 16000, n++, If[tm[n] + tm[n + 4] == 1, Sow[n]]]][[2, 1]] (* G. C. Greubel, Jan 01 2018 *)
PROG
(PARI) is(n)=hammingweight(n)%2!=hammingweight(n+4)%2 \\ Charles R Greathouse IV, Aug 20 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Jun 15 2009
EXTENSIONS
More terms from R. J. Mathar, Aug 17 2009
STATUS
approved