Knowledge / Placement essentials (aptitude, reasoning, verbal, communication, interviews, Excel, workplace) / Permutations and combinations

Permutations and combinations

Placement essentials (aptitude, reasoning, verbal, communication, interviews, Excel, workplace) (All) · Quantitative aptitude · free study notes for exams, placements and interviews

In short

Permutations and combinations (P&C) is the mathematics of counting arrangements and selections without listing them one by one: a permutation counts ordered arrangements, a combination counts unordered groups. It rests on two simple multiplication and addition rules and expands into circular arrangements, repetitions, grouping and distribution. Every campus aptitude paper — TCS NQT, Infosys, Wipro, Capgemini, Cognizant, Accenture, bank PO and SSC — carries 2 to 5 questions on it, and it is the direct foundation of the probability section. In engineering degrees it appears in Discrete Mathematics / Mathematics-III and in GATE CS (Engineering Mathematics) as counting, pigeonhole and inclusion-exclusion.

Explained

Counting principles and factorial

Permutations — order matters

Circular permutations

Combinations — order does not matter

Grouping, division and distribution

Geometry, digits and other standard applications

Key points

Formulas and examples

nPr = n! / (n − r)! — ordered arrangements of r out of n distinct objects (n, r whole numbers, r ≤ n)
nCr = n! / (r! (n − r)!) — unordered selections; nPr = nCr × r!
Arrangements of n items with repeats p, q, r … = n! / (p! q! r! …)
Permutations with repetition allowed = nr ; selections with repetition = (n + r − 1)C r
Circular arrangements = (n − 1)! ; garland / necklace = (n − 1)! / 2
Division into k equal unlabelled groups of n = (kn)! / ((n!)k × k!)
Identical n objects into r distinct boxes: at least one each = (n − 1)C(r − 1); empties allowed = (n + r − 1)C(r − 1)
Total subsets of an n-set = 2n ; diagonals of an n-gon = n(n − 3)/2 ; handshakes = nC2
Exponent of prime p in n! = ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + …
Derangements D(n) = n! (1 − 1/1! + 1/2! − … ± 1/n!)

Example 1 — arrangements of a word with repeats (MISSISSIPPI). Letters: M-1, I-4, S-4, P-2; total n = 11.

Example 2 — committee selection with a condition. A placement committee of 5 is to be formed from 7 boys and 4 girls, with at least 2 girls.

Example 3 — number formation. How many 4-digit numbers using digits 1-7 without repetition are (a) possible, (b) even, (c) divisible by 5?

Example 4 — circular seating and distribution. (a) Eight friends sit round an unmarked circular table; two of them, A and B, insist on sitting together.

(b) Distribute 10 identical certificates among 4 students so that each gets at least one: (10−1)C(4−1) = 9C3 = 84 ways; allowing some to get none: (10+4−1)C(4−1) = 13C3 = 286 ways.

Example 5 — rank of a word and trailing zeros. (a) Rank of MANIT among all arrangements of its 5 distinct letters (alphabetical order A, I, M, N, T):

(b) Trailing zeros in 100!: ⌊100/5⌋ + ⌊100/25⌋ = 20 + 4 = 24 zeros.

SituationUseFormulaExample value
Arrange 3 of 5 distinct booksPermutation5P360
Pick 3 of 5 books to gift (identical gifting)Combination5C310
3-letter codes from 5 letters, repeats allowedRepetition5³125
5 people round an unmarked tableCircular4!24
5 beads in a necklaceCircular, reflection same4!/212
6 students into 2 unlabelled groups of 3Equal groups6!/(3!3!2!)10
6 students into Team A and Team B of 3Labelled groups6!/(3!3!)20

Where it is used

Interview questions

Common mistakes

Related topics

Probability · Number system and divisibility · Algebra: linear and quadratic equations · Progressions and logarithms · Data interpretation · Geometry and coordinate basics

Open in the Knowledge reader →Find jobs →