Pathways and Barriers To Counting Brown
Pathways and Barriers To Counting Brown
Pathways and Barriers To Counting Brown
Unordered Selections
It is well known that the number of ways to choose r distinct objects from n distinct
objects, where the order of the selection is unimportant is given by
n n!
=
r r!(n − r)!
10 B
9
8
7
6
5
4
3
2
1
0
A 0 1 2 3 4 5 6 7 8 9 10
n n 40 40
Another notation that is in common use is to write Cr = , so C6 = .
r 6
n
I now want to look at some interesting examples which use and derive some
r
nice properties that these numbers have.
1
Peter is a lecturer in Pure Mathematics at UNSW.
1
On the grid shown above, we wish to move from A to B such that we must either
move to the right or upwards. How many paths are there from A to B?
Here is one possible path UUUURRURRRRURURRURUU , where U denotes one
move up, and R denotes one move to the right.
Observe that there will always be 20 moves from A to B, 10 up and 10 to the right.
To specify a particular path, we have to say which of the twenty moves are up. Once we
have
decided which ones are up then the rest must be to the right. There are therefore
20
possible paths.
10
10 B
9
8
7
6
5 b
4 C
3
2
1
0
A 0 1 2 3 4 5 6 7 8 9 10
How many paths pass through the point C with co-ordinates (3, 5)?
To get from A to C we have to choose 3 moves to the right from a total of 8 moves
and from C to B we
have
to
choose 7 moves to the right from a total of 12 moves. The
8 12
answer then is × .
3 7
10 k C1 B
b
9 bC2
8
7
6
5
n−k
4
3
2
1
0
A 0 1 2 3 4 5 6 7 8 9 10
2
n
We can use this idea to prove some standard identities for combinatorially.
r
If we have a k × (n − k) grid, (where n ≥ k), we count the number of ways to
get from A to B. There are n moves in total and we have to choose k of these moves
towards the right or n − k moves in the upwards direction. Hence
n n
= .
k n−k
Consider the grid with n − k upward steps and k steps to the right. Any path from A
to B must pass either through the point C1 or C2 . Once we reach either of these
n
points there is only one way to finish. There are ways to get from A to B while
k
n−1 n−1
there are ways to reach C1 and ways to reach C2 . Hence
k−1 k
n n−1 n−1
= + .
k k k−1
3
2
1
0
A 0 1 2 3 4 5 6 7 8 9 10 E
Furthermore, on the n × n board, every
path must pass through exactly one of the
2n
points on the diagonal EF . There are paths from A to B and if we take a general
n
3
n n
point C(k, n − k) on the diagonal, there are paths from A to B passing
k n−k
through C. Hence
2n n n n n n n n n
= + + +···+
n 0 n 1 n−1 2 n−2 n 0
n n
Using the basic fact that = , we can write this result as
k n−k
2 2 2 X n 2
2n n n n n
= + +···+ = .
n 0 1 n k
k=0
x1 + x2 + x3 + x4 = 6
× × × × × × × × ×
Choose three crosses and replace them with barriers, for example
× × | × | × × | ×
2|1|2|1
x1 + x2 + x3 + · · · + x10 = 23
we will need to draw 23 + 9 = 32 crosses and choose 9 of them to be barriers. The
32
number of solutions in the non-negative integers will then be and you can easily
9
generalise the formula.
Notice that we allowed the possibility for a solution with one or more of the vari-
ables equal to 0. Suppose we seek a solution to
x1 + x2 + x3 + · · · + x10 = 23
4
in the positive integers. We could imagine the 10 variables as 10 urns into which we
have to place 23 marbles. To ensure that no urn is empty we could put one marble per
urn, leaving 13 marbles
to then distribute among the urns. The above method says that
22
this can be done in ways.
9
In general, the number of solutions to
x1 + x2 + · · · + xm = n
n+m−1
in the non-negative integers is and in the positive integers it will be
m−1
n−1
.
m−1
Exercise How many solutions are there to
x1 + x2 + x3 + · · · + x10 = 24
A Final Example
Suppose we were to expand out (x + y + z)10 . How many terms would we get after
simplifying?
Each term is of the form xi y j z k , where i + j + k = 10 and we need i, j, k to be non-
negative integers.
This is precisely
the problem we looked at before, so the number of
10 + 3 − 1 12
terms is simply = = 66.
3−1 2
You might like to think about how we would find the co-efficient of say x2 y 3 z 5 in
the above expansion.