Course Test · University: upper level

Combinatorics: independent answers

Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.

  1. 1.Multinomial coefficients
    How many distinct arrangements of the letters of MISSISSIPPI are there?
    Answer
    11 letters: M once, I four times, S four times, P twice. 11!1! 4! 4! 2!=34650\dfrac{11!}{1!\,4!\,4!\,2!} = 34650.
  2. 2.Stars and bars
    How many solutions in non-negative integers does x1+x2+x3+x4=10x_1 + x_2 + x_3 + x_4 = 10 have?
    Answer
    (10+33)=286\binom{10 + 3}{3} = 286.
  3. 3.Inclusion–exclusion
    How many integers from 1 to 100 are divisible by 2, 3 or 5?
    Answer
    50+33+20−16−10−6+3=7450 + 33 + 20 - 16 - 10 - 6 + 3 = 74.
  4. 4.Derangements
    In how many ways can 5 letters go into 5 addressed envelopes with none in the right one?
    Answer
    D5=5!(1−1+12−16+124−1120)=44D_5 = 5!\left(1 - 1 + \tfrac12 - \tfrac16 + \tfrac1{24} - \tfrac1{120}\right) = 44.
  5. 5.Surjections
    How many functions from a 5-set onto a 3-set are there?
    Answer
    35−3⋅25+3⋅15=243−96+3=1503^5 - 3\cdot2^5 + 3\cdot1^5 = 243 - 96 + 3 = 150 (=3! S(5,3)= 3!\,S(5, 3)).
  6. 6.Stirling and Bell numbers
    Find S(5,2)S(5, 2) and the Bell number B5B_5.
    Answer
    S(5,2)=24−1=15S(5, 2) = 2^4 - 1 = 15. B5=1+15+25+10+1=52B_5 = 1 + 15 + 25 + 10 + 1 = 52.
  7. 7.Stirling numbers of the first kind
    How many permutations of 5 elements have exactly 2 cycles?
    Answer
    c(5,2)=50c(5, 2) = 50: from x(x+1)(x+2)(x+3)(x+4)=x5+10x4+35x3+50x2+24xx(x+1)(x+2)(x+3)(x+4) = x^5 + 10x^4 + 35x^3 + 50x^2 + 24x.
  8. 8.Eulerian numbers
    How many permutations of {1,2,3,4}\{1, 2, 3, 4\} have exactly one descent?
    Answer
    A(4,1)=24−5=11A(4, 1) = 2^4 - 5 = 11.
  9. 9.Integer partitions
    Find p(10)p(10), the number of partitions of 10.
    Answer
    p(10)=42p(10) = 42 (by the pentagonal-number recurrence: p(9)+p(8)−p(5)−p(3)=30+22−7−3p(9) + p(8) - p(5) - p(3) = 30 + 22 - 7 - 3).
  10. 10.Compositions
    How many ways can 6 be written as an ordered sum of 3 positive integers?
    Answer
    (52)=10\binom{5}{2} = 10.
  11. 11.Catalan numbers
    How many balanced strings of 3 pairs of brackets are there? What is C5C_5?
    Answer
    C3=5C_3 = 5: ((())), (()()), (())(), ()(()), ()()(). C5=16(105)=42C_5 = \dfrac1{6}\binom{10}{5} = 42.
  12. 12.Vandermonde's identity
    Evaluate ∑k=010(10k)2\displaystyle\sum_{k=0}^{10}\binom{10}{k}^2.
    Answer
    Choose 10 of 20 split into two groups of 10: (2010)=184756\binom{20}{10} = 184756.
  13. 13.Linear recurrences
    Solve an=5an−1−6an−2a_n = 5a_{n-1} - 6a_{n-2}, a0=1a_0 = 1, a1=4a_1 = 4.
    Answer
    Characteristic roots 2 and 3: an=A 2n+B 3na_n = A\,2^n + B\,3^n, A+B=1A + B = 1, 2A+3B=42A + 3B = 4: B=2B = 2, A=−1A = -1. an=2⋅3n−2na_n = 2\cdot3^n - 2^n.
  14. 14.Jacobsthal numbers
    Solve an=an−1+2an−2a_n = a_{n-1} + 2a_{n-2}, a0=0a_0 = 0, a1=1a_1 = 1, and list a0,…,a7a_0, \dots, a_7.
    Answer
    Roots 2 and −1-1: an=2n−(−1)n3a_n = \dfrac{2^n - (-1)^n}{3}. Terms 0, 1, 1, 3, 5, 11, 21, 43.
  15. 15.Generating functions
    In how many ways can 25 cents be made from pennies, nickels and dimes?
    Answer
    The coefficient of x25x^{25} in 1(1−x)(1−x5)(1−x10)\dfrac{1}{(1 - x)(1 - x^5)(1 - x^{10})}: with dd dimes (0, 1, 2) the nickels range over 0..⌊(25−10d)/5⌋0..\lfloor(25 - 10d)/5\rfloor: 6+4+2=126 + 4 + 2 = 12.
  16. 16.Labelled trees
    How many labelled trees are there on 5 vertices?
    Answer
    Cayley's formula: 55−2=1255^{5-2} = 125.
  17. 17.Burnside counting
    How many ways can the 4 vertices of a square be coloured with 3 colours, up to rotation? Up to rotation and reflection?
    Answer
    Rotations: (81+3+9+3)/4=24(81 + 3 + 9 + 3)/4 = 24. With reflections (two diagonal flips fix 2727 each, two edge flips 99 each): (81+3+9+3+27+27+9+9)/8=21(81 + 3 + 9 + 3 + 27 + 27 + 9 + 9)/8 = 21.
  18. 18.Cycle index
    Write the cycle index of the rotation group of a square acting on its vertices.
    Answer
    Identity s14s_1^4, quarter turns s4s_4 (twice), half turn s22s_2^2: Z=14(s14+s22+2s4)Z = \tfrac14(s_1^4 + s_2^2 + 2s_4).
  19. 19.Binomial coefficients
    How many lattice paths go from (0,0)(0, 0) to (4,3)(4, 3) with unit steps right and up?
    Answer
    Choose which 3 of the 7 steps go up: (73)=35\binom73 = 35.
  20. 20.Steiner triple systems
    A Steiner triple system on 7 points has every pair in exactly one triple. How many triples does it have?
    Answer
    (72)/(32)=21/3=7\binom72/\binom32 = 21/3 = 7 (the Fano plane).