ARITHMETIC WORKSHEETS

Checking a combination count by including or excluding one item

Count the subsets of a fixed size by splitting them into those that contain one chosen item and those that do not, then adding the two counts.

The question of choosing three from six

A club has six members and needs a committee of three. The combination count C(6, 3) answers how many different committees exist, with order ignored. The combination calculator gives 20. A direct formula, 6! divided by 3! times 3!, produces that number, but it hides the structure. Pick one member, call her the designated member, and every committee falls into one of two groups: she is on it or she is not. Counting each group separately and adding is the idea behind Pascal's identity, and it is a useful way to check a combination count without recomputing factorials.

Including the designated member

If the designated member is on the committee, one seat is already filled. The remaining two seats are chosen from the other five members. That count is C(5, 2), and the combination calculator returns 10. The ten committees are all different, since each differs in the pair chosen from the five. Notice that the designated member does not appear in any count. She is fixed, and only the choices around her vary. Every committee that includes her is counted exactly once in this group.

Excluding the designated member

If she is not on the committee, all three seats are chosen from the other five. That count is C(5, 3), and the calculator again returns 10. The equality of the two counts is a coincidence of this size. C(5, 2) and C(5, 3) match because of the symmetry C(n, r) equals C(n, n minus r), which holds since choosing r items to include is the same as choosing n minus r items to leave out. With six members and a committee of two instead of three, the two groups would not be equal.

Adding the two groups

The two groups are disjoint and cover every committee, so their counts add: 10 plus 10 equals 20, matching C(6, 3). This is Pascal's identity, written C(n, r) equals C(n minus 1, r minus 1) plus C(n minus 1, r). The first term counts subsets that contain the designated item, and the second counts subsets that leave it out. A mismatch between the sum and the direct count means one of the entries was typed wrongly, or that the groups overlap. They cannot overlap here, since a committee either contains the designated member or does not. It also helps to check the arguments: the first term lowers both n and r by one, because one item and one seat have been used, while the second lowers only n, because the item is gone and the seats are all still open. Swapping those two is a common slip.

A second check with seven items

Take seven items and subsets of size three. Direct computation gives C(7, 3) equal to 35. Choosing a designated item splits the subsets into C(6, 2), which is 15, containing it, and C(6, 3), which is 20, excluding it. The sum is 35, which agrees. A larger case uses C(10, 4), which is 210. Splitting on one item gives C(9, 3) equal to 84 plus C(9, 4) equal to 126, and 84 plus 126 is 210. Each pair of numbers is the entry above and the entry to its left in Pascal's triangle, so every entry of the triangle is a sum of the two entries above it.

Pascal's triangle as a table of these counts

Row 5 of the triangle reads 1, 5, 10, 10, 5, 1, and row 6 reads 1, 6, 15, 20, 15, 6, 1. The entry 20 in row 6 equals the 10 and 10 above it. The triangle is named for Blaise Pascal, whose treatise on it was written in 1654 and published in 1665, but the pattern was known earlier in India, China and Persia. Each row holds the combination counts for a fixed n, starting at r equals 0. Reading the entries as subset counts makes the addition rule natural, since each entry splits on whether the last item is chosen.

Why a fixed item matters

The split works because the designated item is chosen once and kept fixed for every subset. Each subset has a definite answer to whether it contains that item. If you tried to split on two different items in the same count, you would have to track the committees that contain both, either, or neither, and simply adding the separate counts would double count some of them. For a single item, there are only two cases. That is why the identity yields a recursive structure, and why larger problems can be reduced one item at a time. In the committee example, the designated member Alice either holds one of the three seats or does not. If you instead split on whether Alice or Bob is present, you would need cases for both, one, or neither, and you would have to subtract the committees that contain both when you add the separate counts. A single designated item avoids that bookkeeping completely.

The identity as a recursive rule

Programs compute binomial coefficients with the identity directly. The rule C(n, r) equals C(n minus 1, r minus 1) plus C(n minus 1, r) needs two base cases: C(n, 0) equals 1, because there is one way to choose nothing, and C(n, n) equals 1, because there is one way to choose everything. Expanding C(6, 3) by hand produces C(5, 2) and C(5, 3), which in turn produce C(4, 1), C(4, 2) and C(4, 3), and the same smaller values appear again and again. Storing each result in a table, one row of the triangle at a time, avoids the repeated work. This method uses only additions, so it never creates the huge intermediate factorials that the closed formula involves, and it stays exact for sizes where factorials would overflow ordinary integer types.

Scale: the lottery example

The same identity holds at any size, though the numbers grow quickly. Choosing 6 numbers from 49, as in many national lotteries, gives C(49, 6), which is 13,983,816 combinations. Splitting on one designated number gives C(48, 5), equal to 1,712,304, for tickets containing it, and C(48, 6), equal to 12,271,512, for tickets without it. These two sum to 13,983,816. Even at this size the logic of the six-member committee applies unchanged. The identity is an exact statement about counting, so it holds for every n and r where the binomial coefficients are defined.

Reproduce the checks

Includes the designated item

Open the Combination calculator and enter:

Total items n
5
Items selected r
2

Expected output:

Combinations

10

One of the three positions is already filled.

Excludes the designated item

Open the Combination calculator and enter:

Total items n
5
Items selected r
3

Expected output:

Combinations

10

All three items come from the remaining pool.

Unpartitioned total

Open the Combination calculator and enter:

Total items n
6
Items selected r
3

Expected output:

Combinations

20

The two disjoint counts add to the total.

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.

Related tasks