Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

The Lumenary · Advanced undergraduate

Enumerative combinatorics

Name: ______________________

Date: ______________________

You will learn to

  • Use ordinary generating functions for unlabelled structures and exponential generating functions for labelled ones, including the exponential formula
  • Derive the derangement formula D(n)=n!∑k=0n(−1)k/k!D(n) = n! \sum_{k=0}^{n} (-1)^k / k! by inclusion–exclusion and from its exponential generating function
  • Prove Euler's theorem that partitions into odd parts and partitions into distinct parts are equinumerous, by generating functions and by Glaisher's bijection
  • Prove Burnside's lemma and count colourings up to symmetry with it and with Pólya's cycle index
  • Relate the cycle structure of permutations to Stirling numbers and to the exponential formula
  1. 1.

    How many derangements (permutations with no fixed point) does a set of 55 elements have?

  2. 2.

    How many partitions of 77 into distinct parts are there?

  3. 3.

    How many necklaces of 55 beads, each bead one of 33 colours, are there up to rotation?

  4. 4.

    A student counts two-colour necklaces with 44 beads up to rotation as 24/4=42^4 / 4 = 4. The true number is 66. What exactly goes wrong?

    • A.Some colourings are fixed by non-trivial rotations, so their orbits have fewer than 44 elements; dividing by 44 undercounts those orbits.
    • B.The rotation group has 88 elements, not 44.
    • C.Two colourings that are rotations of each other were counted as different.
    • D.Nothing: the student forgot to round up 44 to the next integer.
  5. 5.

    Glaisher's bijection merges equal odd parts: mm copies of an odd number kk become the parts 2ak2^{a} k for the powers 2a2^a in the binary expansion of mm. What is the image of the partition 3+3+3+1+13 + 3 + 3 + 1 + 1 of 1111?

    • A.6+3+26 + 3 + 2
    • B.9+29 + 2
    • C.6+3+1+16 + 3 + 1 + 1
    • D.8+2+18 + 2 + 1
  6. 6.

    Which exponential generating function counts the permutations of {1,…,n}\{1, \dots, n\} all of whose cycles have odd length?

    • A.exp⁡(∑k oddxkk)=1+x1−x\displaystyle \exp\Big(\sum_{k \text{ odd}} \frac{x^k}{k}\Big) = \sqrt{\frac{1 + x}{1 - x}}
    • B.11−x\displaystyle \frac{1}{1 - x}
    • C.exp⁡(x+x33!+x55!+⋯)=esinh⁡x\displaystyle \exp\Big(x + \frac{x^3}{3!} + \frac{x^5}{5!} + \cdots\Big) = e^{\sinh x}
    • D.∑k oddxkk\displaystyle \sum_{k \text{ odd}} \frac{x^k}{k}
  7. 7.

    In the proof of Burnside's lemma we used ∑x∈X∣Gx∣=∣G∣⋅∣X/G∣\sum_{x \in X} |G_x| = |G| \cdot |X/G|. Which fact justifies this step?

    • A.The orbit–stabiliser theorem ∣Gx∣⋅∣G⋅x∣=∣G∣|G_x| \cdot |G \cdot x| = |G|, after which each orbit contributes ∑x∈O1/∣O∣=1\sum_{x \in O} 1/|O| = 1.
    • B.Lagrange's theorem: ∣Gx∣|G_x| divides ∣G∣|G|.
    • C.Every stabiliser has the same size.
    • D.Double counting the pairs (g,x)(g, x) with g⋅x=xg \cdot x = x.
  8. 8.

    Mathlib writes fixedBy X g for the fixed set of g, stabilizer G x for the stabiliser and orbitRel.Quotient G X for the set of orbits. Which statement is Burnside's lemma (true for every finite group acting on a finite set)?

    • A.∑ g : G, Fintype.card (fixedBy X g) = Fintype.card (orbitRel.Quotient G X) * Fintype.card G
    • B.∑ g : G, Fintype.card (fixedBy X g) = Fintype.card (orbitRel.Quotient G X)
    • C.Fintype.card (orbitRel.Quotient G X) = Fintype.card X / Fintype.card G
    • D.∑ x : X, Fintype.card (stabilizer G x) = Fintype.card G
  9. 9.

    Write necklaces(n, k) returning the number of necklaces of nn beads in kk colours up to rotation, using Corollary 8: 1n∑d∣nφ(d) kn/d\frac1n \sum_{d \mid n} \varphi(d)\, k^{n/d}. Write your own totient function phi(d), and return an int.

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0