A153115 Positive integers with the same number of 1s in base 10 and base 2.
1, 16, 128, 512, 1024, 1152, 2112, 4112, 8192, 16384, 16416, 16512, 131073, 131074, 131076, 131080, 131081, 131088, 131105, 131106, 131108, 131110, 131111, 131113, 131114, 131116, 131120, 131121, 131137, 131138, 131140, 131141, 131144, 131152
Offset: 1
Examples
a(6)=1152 because 1152 base 2 = 10010000000 and both terms have the same number of ones.
Links
- Giovanni Resta, Table of n, a(n) for n = 1..10000 (first 250 terms from Robert Israel)
Crossrefs
Cf. A000120.
Programs
-
Maple
filter:= proc(n) numboccur(1,convert(n,base,2))=numboccur(1,convert(n,base,10)) end proc: select(filter, [$1..2*10^5]); # Robert Israel, Jun 16 2020
Comments