ArticleslgStudy

mathematics

Double counting (proof technique)

Double counting (proof technique) is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Double counting (proof technique) rather than just read about it. In short: In combinatorics, double counting, also called counting in two ways, is a combinatorial proof technique for showing that two expressions are equal by demonstrating that they are two ways of counting the size of one set. In this technique, which van Lint & Wilson (2001) call "one of the most important tools in combinatorics", one describes a finite set from two perspectives leading to two distinct expressions for the…

Double counting (proof technique) — main illustration
Double counting (proof technique) — illustration

Key takeaways

  • Double counting (proof technique) belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Double counting (proof technique) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Double counting (proof technique) from memory before moving on to harder problems.

Reference excerpt

In combinatorics, double counting, also called counting in two ways, is a combinatorial proof technique for showing that two expressions are equal by demonstrating that they are two ways of counting the size of one set. In this technique, which van Lint & Wilson (2001) call "one of the most important tools in combinatorics", one describes a finite set from two perspectives leading to two distinct expressions for the size of the set. Since both expressions equal the size of the same set, they equal each other.

Examples

Multiplication (of natural numbers) commutes This is a simple example of double counting, often used when teaching multiplication to young children. In this context, multiplication of natural numbers is introduced as repeated addition, and is then shown to be commutative by counting, in two different ways, a number of items arranged in a rectangular grid. Suppose the grid has n rows and m columns. We first count the items by summing n rows of m items each, then a second time by summing m columns of n items each, thus showing that, for these particular values of n and m, n×m=m×n.

Choose vs discard Double counting can also be used to prove the following identity related to binomial coefficient (nk)=(nn−k) where 0≤k≤n. Suppose there are n identical balls that will be painted either red or blue, and no ball will be left unpainted. When one choosing k amount of balls to be coloured with red paint, the other n−k balls must be painted blue (since each ball must be painted and there's only two colours available). In other words, the process of choosing k objects is the same as choosing the other n−k objects to be discarded. By definition, the number of ways to paint k balls with red from n available balls is (nk). Likewise, the number of ways to paint n−k balls with blue from n available balls is (nn−k). Since both processes are the same thing, we must have (nk)=(nn−k). In fact, one can use similar reasoning to prove the binomial theorem.

Forming committees One example of the double counting method counts the number of ways in which a committee can be formed from n people, allowing any number of the people (even zero of them) to be part of the committee. That is, one counts the number of subsets that an n-element set may have. One method for forming a committee is to ask each person to choose whether or not to join it. Each person has two choices – yes or no – and these choices are independent of those of the other people. Therefore there are 2×2×⋯2=2n possibilities. Alternatively, one may observe that the size of the committee must be some number between 0 and n. For each possible size k, the number of ways in which a committee of k people can be formed from n people is the binomial coefficient (nk). Therefore the total number of possible committees is the sum of binomial coefficients over k=0,1,2,…,n. Equating the two expressions gives the identity ∑k=0n(nk)=2n, a special case of the binomial theorem. A similar double counting method can be used to prove the more general identity ∑k=dn(nk)(kd)=2n−d(nd)

Handshaking lemma

Another theorem that is commonly proven with a double counting argument states that every undirected graph contains an even number of vertices of odd degree. That is, the number of vertices that have an odd number of incident edges must be even. In more colloquial terms, in a party of people some of whom shake hands, an even number of people must have shaken an odd number of other people's hands; for this reason, the result is known as the handshaking lemma. To prove this by double counting, let d(v) be the degree of vertex v. The number of vertex-edge incidences in the graph may be counted in two different ways: by summing the degrees of the vertices, or by counting two incidences for every edge. Therefore ∑vd(v)=2e where e is the number of edges. The sum of the degrees of the vertices is therefore an even number, which could not happen if an odd number of the vertices had odd degree. This fact, with this proof, appears in the 1736 paper of Leonhard Euler on the Seven Bridges of Königsberg that first began the study of graph theory.

Counting trees

What is the number Tn of different trees that can be formed from a set of n distinct vertices? Cayley's formula gives the answer Tn=nn−2. Aigner & Ziegler (1998) list four proofs of this fact; they write of the fourth, a double counting proof due to Jim Pitman, that it is "the most beautiful of them all." Pitman's proof counts in two different ways the number of different sequences of directed edges that can be added to an empty graph on n vertices to form from it a rooted tree. The directed edges point away from the root. One way to form such a sequence is to start with one of the Tn possible unrooted trees, choose one of its n vertices as root, and choose one of the (n−1)! possible sequences in which to add its n−1 (directed) edges. Therefore, the total number of sequences that can be formed in this way is Tnn(n−1)!=Tnn!. Another way to count these edge sequences is to consider adding the edges one by one to an empty graph, and to count the number of choices available at each step. If one has added a collection of n−k edges already, so that the graph formed by these edges is a rooted forest with k trees, there are n(k−1) choices for the next edge to add: its starting vertex can be any one of the n vertices of the graph, and its ending vertex can be any one of the k−1 roots other than the root of the tree containing the starting vertex. Therefore, if one multiplies together the number of choices from the first step, the second step, etc., the total number of choices is ∏k=2nn(k−1)=nn−1(n−1)!=nn−2n!. Equating these two formulas for the number of edge sequences results in Cayley's formula: Tnn!=nn−2n! and Tn=nn−2. As Aigner and Ziegler describe, the formula and the proof can be generalized to count the number of rooted forests with k trees, for any k.

See also

… excerpt ends here. Continue reading the full article.

Illustrations

Double counting (proof technique): Adding a directed edge to a rooted forest
Adding a directed edge to a rooted forest

Worked examples

Example 1 — a first encounter with Double counting (proof technique)

Start with the simplest possible case. Write down what Double counting (proof technique) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Double counting (proof technique) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Double counting (proof technique) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Double counting (proof technique)

In research
Double counting (proof technique) appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Double counting (proof technique) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Double counting (proof technique) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Enumerative combinatorics, Mathematical proofs, so understanding it makes those chapters shorter.
In everyday life
Look for Double counting (proof technique) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Double counting (proof technique)” →

How to study Double counting (proof technique) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Double counting (proof technique) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Double counting (proof technique) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Double counting (proof technique) in simple terms?

In combinatorics, double counting, also called counting in two ways, is a combinatorial proof technique for showing that two expressions are equal by demonstrating that they are two ways of counting the size of one set. In this technique, which van Lint & Wilson (2001) call "one of the most importa…

Why does Double counting (proof technique) matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Double counting (proof technique)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Double counting (proof technique).

Tags

  • Enumerative combinatorics
  • Mathematical proofs

Keep exploring