The number of seven-digit numbers, that can be formed by using the digits , , , and such that each digit is used at least once, is:
- Option A:
- Option B:
- Option C:
- Option D:
Solution
Core idea. When every symbol must appear, the spare places decide the repetition patterns, and each pattern is a permutation with repeated objects.
Concept refresher. The number of arrangements of objects in which kinds repeat times is
where every other object is used once. Equivalently, the number of strings of length from symbols that use every symbol is (inclusion and exclusion).
Approach. Five digits must each appear in seven places, so exactly two places hold repeats; list the two repetition patterns, count each, and add.
Step 1: Find the repetition patterns
Each of the five digits appears at least once, which fills five places; the other two places repeat digits. So the counts of the digits are either
Step 2: Count one digit used three times
Choose the digit that appears three times in ways, then arrange the seven digits with that one repeated:
Step 3: Count two digits used twice
Choose the two digits that appear twice in ways, then divide by for each repeated pair:
Step 4: Add the two cases
The patterns do not overlap, so the total is
Answer. (C) 16800
Sanity check. Inclusion and exclusion over the missing digits gives the same count:
Why the other options are wrong
- (A) A total of would need , but the pattern with one digit used three times gives , not , so the total is .
- (B) A total of is more than ; no other pattern exists, since and are the only ways to share seven places among five digits used at least once.
- (D) Dividing by only one for two repeated pairs gives , and ; each doubled digit needs its own .
Key takeaway
The trap. Two digits used twice need a for each of them, not a single .
How toppers think. They check the case count with inclusion and exclusion, which needs no case split at all.
Remember. Strings of length from symbols using every symbol number .
More on Inclusion–Exclusion Principle
- The number of permutations, of the digits 1, 2, 3, …, 7 without repetition, which neither contain the string…
- The total number of 4-digit numbers whose greatest common divisor with 54 is 2, is
- Let b₁b₂b₃b₄ be a 4-element permutation with bi ∈ {1, 2, 3, …, 100} for 1 ≤ i ≤ 4 and bi ≠ bj for i ≠ j…
- All 7 on Inclusion–Exclusion Principle ›