A135110 Positive numbers such that the digital sum base 2 and the digital sum base 10 are in a ratio of 2:10.
32, 69, 136, 168, 276, 389, 514, 546, 596, 640, 672, 785, 848, 1284, 1289, 1298, 1793, 1798, 1856, 1888, 2058, 2080, 2184, 2369, 2562, 2594, 2698, 2896, 3089, 3589, 4164, 4169, 4178, 4196, 4353, 4358, 4376, 4385, 4416, 4448, 4484, 4489, 4498, 4628, 4673
Offset: 1
Examples
a(1)=32, since ds_2(32):ds_10(32)=1:5=2:10.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Select[Range[5000],5*Total[IntegerDigits[#,2]]==Total[ IntegerDigits[ #]]&] (* Harvey P. Dale, Sep 14 2012 *)
-
PARI
is(n)=sumdigits(n)/hammingweight(n)==5 \\ Charles R Greathouse IV, Sep 22 2013
Comments