Suppose that we wish to color the vertices of a square with two different colors, say black and white. We might suspect that there would be $2^4=16$ different colorings. However, some of these colorings are equivalent. If we color the first vertex black and the remaining vertices white, it is the same as coloring the second vertex black and the remaining ones white since we could obtain the second coloring simply by rotating the square $90^\circ$ (Figure 14.17).

Burnside's Counting Theorem offers a method of computing the number of distinguishable ways in which something can be done. In addition to its geometric applications, the theorem has interesting applications to areas in switching theory and chemistry. The proof of Burnside's Counting Theorem depends on the following lemma.

##### Example14.20

Let $X = \{1, 2, 3, 4, 5 \}$ and suppose that $G$ is the permutation group $G= \{(1), (1 3), (1 3)(2 5), (2 5) \}$. The orbits of $X$ are $\{1, 3\}$, $\{2, 5\}$, and $\{4\}$. The fixed point sets are \begin{align*} X_{(1)} & = X\\ X_{(1 3)} & = \{2, 4, 5 \}\\ X_{(1 3)(2 5)} & = \{4\}\\ X_{(2 5)} & = \{1, 3, 4 \}. \end{align*} Burnside's Theorem says that \begin{equation*}k = \frac{1}{|G|} \sum_{g \in G} |X_g| = \frac{1}{4}(5 + 3 + 1 + 3) = 3.\end{equation*}

Before we apply Burnside's Theorem to switching-theory problems, let us examine the number of ways in which the vertices of a square can be colored black or white. Notice that we can sometimes obtain equivalent colorings by simply applying a rigid motion to the square. For instance, as we have pointed out, if we color one of the vertices black and the remaining three white, it does not matter which vertex was colored black since a rotation will give an equivalent coloring.

The symmetry group of a square, $D_4$, is given by the following permutations: \begin{align*} &(1) & &(13) & & (24) & & (1432)\\ &(1234) & &(12)(34) & & (14)(23) & & (13)(24) \end{align*} The group $G$ acts on the set of vertices $\{ 1, 2, 3, 4\}$ in the usual manner. We can describe the different colorings by mappings from $X$ into $Y = \{ B, W \}$ where $B$ and $W$ represent the colors black and white, respectively. Each map $f : X \rightarrow Y$ describes a way to color the corners of the square. Every $\sigma \in D_4$ induces a permutation $\widetilde{ \sigma }$ of the possible colorings given by $\widetilde{\sigma}(f) = f \circ \sigma$ for $f : X \rightarrow Y$. For example, suppose that $f$ is defined by \begin{align*} f(1) & = B\\ f(2) & = W\\ f(3) & = W\\ f(4) & = W \end{align*} and $\sigma = (1 2)(3 4)$. Then $\widetilde{\sigma}(f) = f \circ \sigma$ sends vertex 2 to $B$ and the remaining vertices to $W$. The set of all such $\widetilde{\sigma}$ is a permutation group $\widetilde{G}$ on the set of possible colorings. Let $\widetilde{X}$ denote the set of all possible colorings; that is, $\widetilde{X}$ is the set of all possible maps from $X$ to $Y$. Now we must compute the number of $\widetilde{G}$-equivalence classes.

1. $\widetilde{X}_{(1)} = \widetilde{X}$ since the identity fixes every possible coloring. $|\widetilde{X}| = 2^4 =~16$.

2. $\widetilde{X}_{(1 2 3 4)}$ consists of all $f \in \widetilde{X}$ such that $f$ is unchanged by the permutation $(1 23 4)$. In this case $f(1) = f(2) = f(3) = f(4)$, so that all values of $f$ must be the same; that is, either $f(x)= B$ or $f(x)= W$ for every vertex $x$ of the square. So $|\widetilde{X}_{(1 2 3 4)}| = 2$.

3. $|\widetilde{X}_{(1 4 3 2)}| = 2$.

4. For $\widetilde{X}_{(1 3)(2 4)}$, $f(1) = f(3)$ and $f(2) = f(4)$. Thus, $|\widetilde{X}_{(13)(24)}| = 2^2 = 4$.

5. $|\widetilde{X}_{(1 2)(3 4)}| = 4$.

6. $|\widetilde{X}_{(1 4)(2 3)}| = 4$.

7. For $\widetilde{X}_{(1 3 )}$, $f(1) = f(3)$ and the other corners can be of any color; hence, $|\widetilde{X}_{(1 3)}| = 2^3 = 8$.

8. $|\widetilde{X}_{(2 4)}| = 8$.

By Burnside's Theorem, we can conclude that there are exactly \begin{equation*}\frac{1}{8} ( 2^4 + 2^1 + 2^2 + 2^1 + 2^2 + 2^2 +2^3 + 2^3) = 6\end{equation*} ways to color the vertices of the square.

##### Example14.22

Let $X = \{1, 2, \ldots, 7\}$ and suppose that $Y = \{ A, B, C \}$. If $g$ is the permutation of $X$ given by $(1 3)(2 4 5) = (1 3)(2 4 5)(6)(7)$, then $n = 4$. Any $f \in \widetilde{X}_g$ must have the same value on each cycle in $g$. There are $|Y|=3$ such choices for any value, so $|\widetilde{X}_g| = 3^4 = 81$.

##### Example14.23

Suppose that we wish to color the vertices of a square using four different colors. By Proposition 14.21, we can immediately decide that there are \begin{equation*}\frac{1}{8} (4^4 + 4^1 + 4^2 + 4^1 + 4^2 + 4^ 2 + 4^3 + 4^3) = 55\end{equation*} possible ways.

In switching theory we are concerned with the design of electronic circuits with binary inputs and outputs. The simplest of these circuits is a switching function that has $n$ inputs and a single output (Figure 14.24). Large electronic circuits can often be constructed by combining smaller modules of this kind. The inherent problem here is that even for a simple circuit a large number of different switching functions can be constructed. With only four inputs and a single output, we can construct 65,536 different switching functions. However, we can often replace one switching function with another merely by permuting the input leads to the circuit (Figure 14.25).

We define a switching or Boolean function of $n$ variables to be a function from ${\mathbb Z}_2^n$ to ${\mathbb Z}_2$. Since any switching function can have two possible values for each binary $n$-tuple and there are $2^n$ binary $n$-tuples, $2^{2^n}$ switching functions are possible for $n$ variables. In general, allowing permutations of the inputs greatly reduces the number of different kinds of modules that are needed to build a large circuit.

The possible switching functions with two input variables $a$ and $b$ are listed in Table 14.26. Two switching functions $f$ and $g$ are equivalent if $g$ can be obtained from $f$ by a permutation of the input variables. For example, $g(a, b, c) = f(b, c, a)$. In this case $g \sim f$ via the permutation $(acb)$. In the case of switching functions of two variables, the permutation $(ab)$ reduces 16 possible switching functions to 12 equivalent functions since \begin{align*} f_2 & \sim f_4\\ f_3 & \sim f_5\\ f_{10} & \sim f_{12}\\ f_{11} & \sim f_{13}. \end{align*}

For three input variables there are $2^{2^3} = 256$ possible switching functions; in the case of four variables there are $2^{2^4} =\mbox{65,536}$. The number of equivalence classes is too large to reasonably calculate directly. It is necessary to employ Burnside's Theorem.

Consider a switching function with three possible inputs, $a$, $b$, and $c$. As we have mentioned, two switching functions $f$ and $g$ are equivalent if a permutation of the input variables of $f$ gives $g$. It is important to notice that a permutation of the switching functions is not simply a permutation of the input values $\{a, b, c\}$. A switching function is a set of output values for the inputs $a$, $b$, and $c$, so when we consider equivalent switching functions, we are permuting $2^3$ possible outputs, not just three input values. For example, each binary triple $(a, b, c)$ has a specific output associated with it. The permutation $(acb)$ changes outputs as follows: \begin{align*} (0, 0, 0) & \mapsto (0, 0, 0)\\ (0, 0, 1) & \mapsto (0, 1, 0)\\ (0, 1, 0) & \mapsto (1, 0, 0)\\ & \vdots \\ (1, 1, 0) & \mapsto (1, 0, 1)\\ (1, 1, 1) & \mapsto (1, 1, 1). \end{align*}

Let $X$ be the set of output values for a switching function in $n$ variables. Then $|X|=2^n$. We can enumerate these values as follows: \begin{align*} (0, \ldots, 0, 1) & \mapsto 0\\ (0, \ldots, 1, 0) & \mapsto 1\\ (0, \ldots, 1, 1) & \mapsto 2\\ & \vdots \\ (1, \ldots, 1, 1) & \mapsto 2^n-1. \end{align*} Now let us consider a circuit with four input variables and a single output. Suppose that we can permute the leads of any circuit according to the following permutation group: \begin{gather*} (a) \quad (ac) \quad (bd) \quad (adcb)\\ (abcd) \quad (ab)(cd) \quad (ad)(bc) \quad (ac)(bd). \end{gather*} The permutations of the four possible input variables induce the permutations of the output values in Table 14.27.

Hence, there are \begin{equation*} \frac{1}{8} (2^{16} + 2 \cdot 2^{12} + 2 \cdot 2^6 + 3 \cdot 2^{10}) = 9616\end{equation*} possible switching functions of four variables under this group of permutations. This number will be even smaller if we consider the full symmetric group on four letters.

William Burnside was born in London in 1852. He attended Cambridge University from 1871 to 1875 and won the Smith's Prize in his last year. After his graduation he lectured at Cambridge. He was made a member of the Royal Society in 1893. Burnside wrote approximately 150 papers on topics in applied mathematics, differential geometry, and probability, but his most famous contributions were in group theory. Several of Burnside's conjectures have stimulated research to this day. One such conjecture was that every group of odd order is solvable; that is, for a group $G$ of odd order, there exists a sequence of subgroups \begin{equation*}G = H_n \supset H_{n-1} \supset \cdots \supset H_1 \supset H_0 = \{ e \}\end{equation*} such that $H_i$ is normal in $H_{i+1}$ and $H_{i+1} / H_i$ is abelian. This conjecture was finally proven by W. Feit and J. Thompson in 1963. Burnside's The Theory of Groups of Finite Order, published in 1897, was one of the first books to treat groups in a modern context as opposed to permutation groups. The second edition, published in 1911, is still a classic.