A125592 Evil numbers (A001969) multiplied by 2.
0, 6, 10, 12, 18, 20, 24, 30, 34, 36, 40, 46, 48, 54, 58, 60, 66, 68, 72, 78, 80, 86, 90, 92, 96, 102, 106, 108, 114, 116, 120, 126, 130, 132, 136, 142, 144, 150, 154, 156, 160, 166, 170, 172, 178, 180, 184, 190, 192, 198, 202, 204, 210, 212, 216, 222, 226, 228, 232, 238
Offset: 1
Programs
-
Mathematica
2*Select[Range[0,120],EvenQ[DigitCount[#,2,1]]&] (* Harvey P. Dale, Jun 14 2017 *)
-
PARI
is(n)=n%2==0 && hammingweight(n)%2==0 \\ Charles R Greathouse IV, Mar 22 2013
-
PARI
a(n)=4*n--+hammingweight(n)%2*2 \\ Charles R Greathouse IV, Mar 22 2013
Comments