Menu Close

What-is-the-sum-in-base-10-of-all-the-natural-numbers-less-than-64-which-have-exactly-three-ones-in-their-base-2-representation-




Question Number 19704 by Tinkutara last updated on 14/Aug/17
What is the sum (in base 10) of all the  natural numbers less than 64 which  have exactly three ones in their base 2  representation?
Whatisthesum(inbase10)ofallthenaturalnumberslessthan64whichhaveexactlythreeonesintheirbase2representation?
Answered by mrW1 last updated on 15/Aug/17
“1” means 1, 2, 4, 8, 16, 32 from  right to left.  with three “1” we can get  following possible numbers:  32+16+8  32+16+4  32+16+2  32+16+1   ⇒ Σ=4×32+5×16−1=207  32+8+4  32+8+2  32+8+1  ⇒ Σ=3×32+4×8−1=127  32+4+2  32+4+1 ⇒ Σ=2×32+3×4−1=75  32+2+1 ⇒ 35  16+8+4  16+8+2  16+8+1 ⇒ Σ=3×16+4×8−1=79  16+4+2  16+4+1 ⇒ Σ=2×16+3×4−1=43  16+2+1 ⇒ 19  8+4+2  8+4+1 ⇒ Σ=2×8+3×4−1=27  8+2+1 ⇒11  4+2+1 ⇒ 7    Σ=207+127+75+35+79+43+19+27+11+7  =630
1means1,2,4,8,16,32fromrighttoleft.withthree1wecangetfollowingpossiblenumbers:32+16+832+16+432+16+232+16+1Σ=4×32+5×161=20732+8+432+8+232+8+1Σ=3×32+4×81=12732+4+232+4+1Σ=2×32+3×41=7532+2+13516+8+416+8+216+8+1Σ=3×16+4×81=7916+4+216+4+1Σ=2×16+3×41=4316+2+1198+4+28+4+1Σ=2×8+3×41=278+2+1114+2+17Σ=207+127+75+35+79+43+19+27+11+7=630
Commented by Tinkutara last updated on 15/Aug/17
Thank you very much Sir!
ThankyouverymuchSir!
Commented by mrW1 last updated on 16/Aug/17
there is an easier way to find the sum   without knowing each number:    2Σ=(1+2+4+8+16+32)×5×4=1260  ⇒Σ=1260/2=630
thereisaneasierwaytofindthesumwithoutknowingeachnumber:2Σ=(1+2+4+8+16+32)×5×4=1260Σ=1260/2=630
Commented by ajfour last updated on 16/Aug/17
             111            1110, and 2 other 4 digit ones          11100, and 5 other 5 digit ones       111000, and 9 other 6 digit ones  111+Σ1110+Σ11100+Σ111000  =7+3×8+2(4+2+1)+           6×16+3(8+4+2+1)+           10×32+4(16+8+4+2+1)  = 7+24+14+96+45+320+124  =630 .
1111110,and2other4digitones11100,and5other5digitones111000,and9other6digitones111+Σ1110+Σ11100+Σ111000=7+3×8+2(4+2+1)+6×16+3(8+4+2+1)+10×32+4(16+8+4+2+1)=7+24+14+96+45+320+124=630.
Commented by Tinkutara last updated on 16/Aug/17
Thank you both mrW1 and ajfour.
ThankyoubothmrW1andajfour.

Leave a Reply

Your email address will not be published. Required fields are marked *