Enumerative combinatorics
Warm-upHumanHow many derangements (permutations with no fixed point) does a set of elements have?
How many derangements (permutations with no fixed point) does a set of elements have?
How many partitions of into distinct parts are there?
How many necklaces of beads, each bead one of colours, are there up to rotation?
A student counts two-colour necklaces with beads up to rotation as . The true number is . What exactly goes wrong?
Glaisher's bijection merges equal odd parts: copies of an odd number become the parts for the powers in the binary expansion of . What is the image of the partition of ?
Which exponential generating function counts the permutations of all of whose cycles have odd length?
In the proof of Burnside's lemma we used . Which fact justifies this step?
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)?
Write necklaces(n, k) returning the number of necklaces of beads in colours up to rotation, using Corollary 8: . Write your own totient function phi(d), and return an int.