The binary form of 2n is a one followed by n zeros. A sum of different powers of two has a one at each listed exponent. Repeated exponents require carrying before you count bits.
Problem
How many ones appear in the binary representation of 4200+2300+1? Also check the smaller example 27+4.
Answer
The large expression has 3 ones; 27+4 has 2 ones.
Both counts follow from distinct exponent positions, without expanding the integers.
Step-by-step solution
1. Rewrite everything as powers of two
4200=(22)200=2400,1=20.
The full expression is 2400+2300+20.
2. Read the bit positions
The three exponents 400, 300 and 0 are distinct, so there is a one in each of those binary positions and zero elsewhere. No carrying is needed. Thus the count is 3.
3. Check a smaller example
27+4=27+22 has a one in positions 7 and 2, giving 2 ones.