← All problems

Sum of Numbers with a Fixed Number of Set Bits

Combinatorics 1417
What is the sum of all numbers from $1$ to $1024$ that have exactly four $1$'s in its binary representation?