Exercise 1759Logic, sets and proofs › Proof techniques › InductionOlympiadAdded 3 Nov 2026
Representation of integers
#strong induction#representation#powers
Statement
Show that every positive integer can be written as a sum of distinct powers of (binary expansion).
Hint
Strong induction: if is even, divide by ; if odd, subtract .
Show solutionHide solution
Solution
Strong induction. Base case : . ✓
Inductive step. Suppose every integer has a binary expansion.
- If is even: with , so ; then , distinct powers.
- If is odd: is even and , so ; then , with distinct from all (since even means all ).
Conclusion. Every positive integer is a sum of distinct powers of .