He number of 1s or 0s in binary representation of a number<span>up vote2down votefavoriteWhat is the number of 1s in the binary representation of<span><span>3×512+7×64+5×8+3</span><span>3×512+7×64+5×8+3</span></span>Is there any shortcut for finding the number of <span><span><span>1′</span>s</span><span><span>1′</span>s</span></span> and <span><span><span>0′</span>s</span><span><span>0′</span>s</span></span> in a binary number which has been factored as above?</span>