KEAM /Mathematics

Permutations and Combinations

Algebra - II (Series, P&C, Binomial, Matrices) · free study notes

Permutations and Combinations – Advanced Study Notes

(MIT‑Level, “First Principles”)

Audience – Undergraduate students in mathematics, physics or computer science who already know basic algebra and set theory.
Goal – Build a solid, rigorous foundation for counting, then extend to modern topics: generating functions, inclusion–exclusion, exponential formulas, and applications to probability, coding theory, and combinatorial optimization.


1. Foundations

1.1 Definitions

Symbol Meaning Example
(S) A finite set (S={1,2,3,4})
( S )
(P(S)) Power set of (S) ({\emptyset,{1},\dots,S})
(k)-subset Subset of size (k) ({1,3}) is a 2‑subset of (S)
(k)-permutation Ordered (k)-tuple of distinct elements of (S) ((1,2))
(k)-combination Unordered (k)-subset ({1,2})

1.2 Counting Principle

Theorem (Fundamental Counting Principle).
If a process has (n_1) ways to perform the first step, (n_2) ways to perform the second step (regardless of the first), …, (n_m) ways to perform the (m)-th step, then the total number of ways to perform the entire process is
[ N = n_1 n_2 \dots n_m . ]

Proof. Induction on (m). For (m=1) trivial. Assume true for (m-1). For step (m) we have (n_m) choices for each of the (n_1 \dots n_{m-1}) partial processes, giving (n_m (n_1 \dots n_{m-1}) = n_1 \dots n_m). ∎


2. Permutations

2.1 Basic Formula

Theorem (Permutations of Distinct Objects).
The number of (k)-permutations of an (n)-element set is [ P(n,k)=\frac{n!}{(n-k)!}\qquad (0\le k\le n). ]

Derivation.
Choose first element in (n) ways, second in (n-1) ways, …, (k)-th in (n-k+1) ways. Multiply by the counting principle.

2.2 Permutations with Repetition

Suppose we have (n) objects, of which (n_1,n_2,\dots,n_m) are identical of each type. Then

[ P_{\text{rep}}(n; n_1,\dots,n_m)=\frac{n!}{n_1!,n_2!\cdots n_m!}. ]

Proof. Count all (n!) permutations ignoring identities, then divide by the overcounting factor for each identical block.

2.3 Edge Cases

Condition Result Comment
(k=0) (1) Only the empty permutation
(k=n) (n!) All objects used
(k>n) (0) Impossible

3. Combinations

3.1 Basic Formula

Theorem (Combinations of Distinct Objects).
The number of (k)-subsets of an (n)-element set is [ C(n,k)=\binom{n}{k}=\frac{n!}{k!,(n-k)!}\qquad (0\le k\le n). ]

Derivation.
Choose a (k)-permutation ((\frac{n!}{(n-k)!})), then divide by (k!) because the order of the chosen elements is irrelevant.

3.2 Combinations with Repetition

For selecting (k) objects from (n) types with unlimited supply:

[ C_{\text{rep}}(n,k)=\binom{n+k-1}{k}. ]

Proof. Stars-and-bars: distribute (k) indistinguishable stars into (n) boxes.

3.3 Edge Cases

Condition Result Comment
(k=0) (1) Empty subset
(k=n) (1) Whole set
(k>n) (0) Impossible

4. Advanced Counting Techniques

4.1 Inclusion–Exclusion Principle

Theorem.
For finite sets (A_1,\dots,A_m), [ \Bigl|\bigcup_{i=1}^m A_i\Bigr| =\sum_{k=1}^m (-1)^{k-1}!!!!!!!!!!!!!!! !!!!!!!!!!!!!!! \sum_{1\le i_1<\dots<i_k\le m}\bigl|A_{i_1}\cap\cdots\cap A_{i_k}\bigr|. ]

Application. Counting derangements (see §5.1) and permutations avoiding a pattern.

4.2 Generating Functions

  • Ordinary GF for combinations:
    [ \sum_{k=0}^n \binom{n}{k}x^k = (1+x)^n. ]
  • Exponential GF for permutations:
    [ \sum_{n\ge 0} \frac{n!}{n!}x^n = e^x. ]

Use. Coefficients of power series encode combinatorial numbers; differentiation, integration, and product rules yield recurrences.

4.3 Exponential Formula

For combinatorial species, the exponential generating function (EGF) of labeled structures satisfies:

[ F(x)=\exp!\bigl(G(x)\bigr) ]

where (G(x)) is the EGF of connected structures.
Example. Counting set partitions (Bell numbers).

4.4 Rec

Your note

Page 1

Doubt hai is topic me?

Free AI teacher se poocho — 24/7, step by step.