If the number of seven-digit numbers, such that the sum of their digits is even, is ; , then is equal to _______
Solution
Core idea. Half the choices of the last digit give each parity of the digit sum.
Concept refresher. If each of places can be filled in ways independently, the number of ways is
Among the ten digits, five are even and five are odd, so half the choices of any one digit give each parity of the digit sum.
Picture the situation. A seven-digit number has a first digit from 1 to 9 and six further digits from 0 to 9. The parity of the digit sum can always be fixed at the very end: once six digits are chosen, the last digit has to be even or odd to match, and either way there are five choices.
Approach. Count the choices of the first six digits, multiply by the five suitable last digits, and match the form.
Step 1: The first six digits
The first digit has 9 choices and the next five have 10 each, giving ways.
Step 2: The last digit
For each choice, exactly 5 of the 10 possible last digits make the sum even. So the count is , which gives and , and .
Answer. 14
Sanity check. There are seven-digit numbers, and exactly half of them, , have an even digit sum.
Common wrong answers
- 45: The product is 45, but the question asks for the sum .
Key takeaway
The trap. The same letter appears as a factor and as the power of ten, which fixes its value.
How toppers think. They note at once that half of all seven-digit numbers qualify.
Remember. Half of the numbers have an even digit sum.