Jesinth
Newbie level 4
- Joined
- Mar 21, 2011
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Chennai, India
- Activity points
- 1,328
Is there any way to find out the number of ones in the binary representation of
(3 x 512) + (7 x 64) + (5 x 8 ) + 3 without actual calculation of decimal equicalent and converting into binary.
(The resultant decimal is 2027 with binary equivalent 11111101011 which has 9 ones.)
How to get this value 9 from the expression above?
(3 x 512) + (7 x 64) + (5 x 8 ) + 3 without actual calculation of decimal equicalent and converting into binary.
(The resultant decimal is 2027 with binary equivalent 11111101011 which has 9 ones.)
How to get this value 9 from the expression above?