OFFSET
1,1
EXAMPLE
The binary expansion of 6 is "110", and has one 1-bit at (odd) position 1 and one 1-bit at (even) position 2; thus 6 appears in the sequence.
MATHEMATICA
ok[n_] := With[{p = Position[IntegerDigits[n, 2], 1]}, AnyTrue[p, OddQ[#[[1]]]&] && AnyTrue[p, EvenQ[#[[1]]]&]]; Select[Range[100], ok] (* Jean-François Alcover, Mar 31 2017 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Rémy Sigrist, Apr 12 2010
STATUS
approved