Counting selections with at least one designated item
Count the subsets that contain at least one designated item by taking all subsets of that size and removing the ones that contain none.
Why the complement is easier
Among eight distinct items, three are designated. A group of three is chosen. The condition at least one designated item covers three situations: exactly one, exactly two or exactly three designated members. Counting each and adding is possible but takes several steps. The opposite condition, no designated items, is a single case. Every subset either has at least one designated item or has none, and no subset is in both categories. So the wanted count is the total number of subsets minus the number with none.
The total number of subsets
Without any condition, the number of three-item subsets of eight is 8 choose 3. The formula is 8 times 7 times 6 divided by 3 times 2 times 1, which is 336 over 6, or 56. The Combination calculator returns 56 for n equal to 8 and r equal to 3. This number counts every unordered selection of three distinct items, whether or not designated items are included. It is the starting pool from which the unwanted subsets will be removed. The designated items play no role in this first count, which is why the total can be stated before the designation is even mentioned. In a longer problem it is worth writing this number down on its own line, since both the complement method and the direct case method start from it or compare against it.
Subsets with no designated item
A subset with no designated item must be chosen entirely from the five undesignated items. The number of such subsets is 5 choose 3, which the calculator returns as 10. Three designated items are simply excluded from consideration. The count does not depend on how many designated items there are beyond their removal from the pool, so it would be the same for any three designated items among the eight. This is the single disjoint category that the complement approach relies on, and it is much smaller than the total. The count 10 is the same as the number of two-item groups among five, which is no coincidence: choosing three items to include from five is equivalent to choosing two items to leave out. That symmetry between kept and omitted items is the subject of a separate guide on complementary subsets.
Subtracting to get 46
The wanted count is 56 minus 10, which the basic calculator gives as 46. So 46 of the 56 three-item subsets contain at least one designated item. The remaining 10 contain none. Both categories together account for all 56, which is a quick check that no subset has been missed or counted twice. Stating the answer as a split, 46 with and 10 without, is more informative than the single number 46, since a reader can verify that the two parts sum to the total. The share with at least one designated item is 46 out of 56, a little over four fifths. The complement approach is especially strong when the number of designated items is small compared with the whole, since the no-designated category is then still sizable, and when the condition is phrased as at least one.
Checking by direct cases
To confirm 46, add the three direct cases. Exactly one designated item: choose which one in 3 ways and two undesignated items in 5 choose 2, or 10 ways, giving 30. Exactly two designated: 3 ways to choose the pair and 5 ways to choose the undesignated item, giving 15. Exactly three designated: 1 way. The sum is 30 plus 15 plus 1, which is 46. The basic calculator confirms 3 times 10 as 30, 3 times 5 as 15 and the total. Two independent methods giving the same number is strong evidence the count is right. The direct method is also the better teacher of structure, since it shows how the 46 splits by the number of designated members. The complement method is the better tool when the number of cases grows. With ten designated items and a group of five, the direct method needs five cases, and the complement still needs one subtraction.
A larger set with four designated items
Take ten distinct items with four designated, and choose three. The total is 10 choose 3, or 120. The subsets with no designated item come from the six undesignated items, giving 6 choose 3, or 20. The wanted count is 120 minus 20, or 100. The Combination calculator returns 20 for n equal to 6 and r equal to 3, and the basic calculator gives the difference. Here the no-designated category is about one sixth of the total, and the complement approach again needs a single subtraction where the direct method would need three cases.
Why not subtract one case per designated item
A tempting but wrong approach is to count the subsets containing the first designated item, then the second, then the third, and add them. A subset containing two designated items would be counted twice, and one containing all three would be counted three times. Each of the three designated items appears in 21 subsets, so the sum would be 63, which exceeds the total of 56. The complement avoids the issue because its single category has no overlap with the wanted subsets. Any approach that adds overlapping cases needs a correction term.
Recognizing complement problems
Phrases such as at least one, at most all but one, or not none suggest a complement. The condition that is awkward to count directly often has a simple opposite. For at least one defective item in a sample, the opposite is no defective items. For at least one common letter between two words, the opposite is no common letters. Check that the two categories really split the whole set, so that every outcome falls into exactly one. Then count the total and the complement, and subtract.
Assumptions and limits
The subsets are unordered, the items are distinct and no item is chosen twice. The designation is a fixed label, known in advance. If order mattered, such as choosing a first, second and third pick, the totals would be permutation counts and the complement would be computed from those instead. The result 46 counts subsets and carries no information about probability unless a selection process is specified. For a uniform random selection of three items, the probability of at least one designated item would be 46 over 56, but the guide does not assume that.
Reproduce the checks
All three-item subsets
Open the Combination calculator and enter:
- Total items n
8- Items selected r
3
Expected output:
Combinations
56Every valid subset is included initially.
No designated items
Open the Combination calculator and enter:
- Total items n
5- Items selected r
3
Expected output:
Combinations
10Choose only from the undesignated pool.
At least one designated item
Open the Basic calculator and enter:
- First number
56- Operation
subtract- Second number
10
Expected output:
Result
46The complement removes exactly the unwanted subsets.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.