Learn / Library / Brainteasers
Odd digits only
Consider every -digit number whose digits are all odd, such as or . What is the sum of all these numbers?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Match each number with the one whose digits are minus its digits.
Solution
- Each digit has choices, so there are such numbers.
- Replacing every digit by gives a number of the same kind, its partner, for example and ; only is its own partner.
- Each number and its partner add up to , since .
- Adding each number to its partner, over all numbers, gives and counts every number times.
- So the sum is .
Answer: