Master Mathematics.

Combinatorics

1. Basic counting

  • Multiplication and addition principles: independent choices multiply; disjoint cases add.
  • Arrangements: orders; ordered choices of ; unordered; arrangements with repeated items.
  • Functions with , : in all, one-to-one.
  • Fixed order: if some items must appear in a fixed relative order, choose their positions () and place the rest.
  • Arithmetic progressions inside : count the starting points for each .
  • Involutions () are products of disjoint swaps: .

2. Advanced counting techniques

  • Stars and bars: non-negative solutions of : ; positive ones .
  • Gaps: increasing with gaps become strictly increasing after subtracting .
  • Inclusion–exclusion: . Derangements .
  • Complementary counting: count what you don't want and subtract.
  • Catalan numbers : balanced brackets, paths that never go below the diagonal ().
  • Alternating permutations of : of each up-down type.

3. Binomial theorem

  • ; the general term is .
  • Identities: , , , , .
  • Pascal: .
  • Roots of unity filter: sums like are real parts of .
  • Last digits: .

4. Pigeonhole, invariants & monovariants

  • Pigeonhole: objects in boxes put two in one box; objects put in one.
  • Choosing boxes: residues mod , sub-squares of a grid, points of (any contain a line, three points adding to ).
  • Covering arguments: if points are pairwise farther apart than the diameter of a piece, you need pieces.
  • Invariants: parity, sums mod , colourings. A product over an odd is even, since forces an even factor.
  • Orthogonal columns: counting the four sign patterns of three columns shows .

5. Recurrence relations

  • Set up by the first or last step: tilings with (2 colours) and tiles give ; strings with no two consecutive 2's give Fibonacci numbers.
  • Linear recurrences : solve ; with roots , .
  • Splitting in the middle gives identities like .
  • Functional equations on : is a linear recurrence.

6. Graph theory & probability

  • Graphs: ; a tree on vertices has edges; an Eulerian circuit exists iff the graph is connected and all degrees are even.
  • Extremal arguments: start from the vertex with the most neighbours of some kind.
  • Tournaments: teams play games among themselves, which bounds the -th best score.
  • Classical probability: favourable over total for equally likely outcomes; .
  • Binomial and Poisson: ; for large and it tends to Poisson.
  • Expectation by indicators: .