OFFSET
1,1
EXAMPLE
42 in binary is 101010. This contains the same number of 0's as 1's and that number (3) divides 42. So 42 is included in the sequence.
MATHEMATICA
Select[Range[5000], DigitCount[ #, 2, 0] == DigitCount[ #, 2, 1] && Mod[ #, DigitCount[ #, 2, 0]] == 0 &] (* Stefan Steinerberger, Sep 15 2008 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Sep 11 2008
EXTENSIONS
More terms from Stefan Steinerberger and Dmitry Kamenetsky, Sep 15 2008
STATUS
approved