The sum and product rules, permutations (with and without repetition, of multisets, circular), combinations, stars and bars, the binomial and multinomial theorems, inclusion–exclusion, derangements and the pigeonhole principle — the toolkit for every "equally likely outcomes" probability question.
Almost every probability question on equally likely outcomes reduces to counting: P(E)=∣E∣/∣S∣. GATE uses counting both directly (NAT questions asking "how many ways") and inside probability problems (cards, balls in urns, committees, arrangements).
The two basic rules
Sum rule. If a task can be done in one of m ways or one of n ways, with no overlap, it can be done in m+n ways.
Product rule. If a task is a sequence of two steps with m choices for the first and n for the second (for each first choice), it can be done in m⋅n ways.
Permutations — ordered selections
Situation
Count
Arrange all n distinct objects
n!
Arrange r of n distinct objects (no repetition)
nPr=(n−r)!n!
Sequences of length r from n symbols, repetition allowed
nr
Arrange a multiset with n1,n2,…,nk copies (∑ni=n)
n1!n2!⋯nk!n!
Circular arrangement of n distinct objects
(n−1)!
Circular, where clockwise = anticlockwise (necklace, garland)
2(n−1)!
Why circular is (n−1)!: each circular seating corresponds to exactly n linear seatings (its rotations), so n!/n.
Restrictions
"Together": glue the items into one block, arrange the blocks, then multiply by the internal arrangements of the block.
"Not together": total minus "together", or use the gap method — arrange the other items first, then choose gaps for the separated ones.
Combinations — unordered selections
(rn)=r!(n−r)!n!=r!nPr
Key properties:
(rn)=(n−rn) (choosing who's in = choosing who's out).
Pascal's rule: (rn)=(r−1n−1)+(rn−1) (either a particular item is chosen or not).
∑r=0n(rn)=2n — the number of subsets of an n-set.
Vandermonde: (rm+n)=∑k(km)(r−kn).
Distributing objects into boxes
Objects
Boxes
Constraint
Count
distinct (n)
distinct (k)
any
kn
distinct
distinct
each box non-empty
k!S(n,k) (surjections) =∑j=0k(−1)j(jk)(k−j)n
identical (n)
distinct (k)
any
(k−1n+k−1) (stars and bars)
identical
distinct
each box ≥1
(k−1n−1)
Stars and bars
The non-negative integer solutions of x1+⋯+xk=n correspond to arrangements of n stars and k−1 bars: (k−1n+k−1).
Lower boundsxi≥ai: substitute yi=xi−ai and reduce n.
Upper boundsxi≤bi: use inclusion–exclusion on the violated bounds.
Use it whenever the question says "at least one", "none of", or "not divisible by any of".
Derangements
Permutations of n items with no item in its original position:
Dn=n!k=0∑nk!(−1)k,Dn=(n−1)(Dn−1+Dn−2),
with D1=0,D2=1,D3=2,D4=9,D5=44,D6=265. The probability that a random permutation is a derangement tends to 1/e≈0.3679.
The pigeonhole principle
If N objects go into k boxes, some box holds at least ⌈N/k⌉ objects. It answers "minimum number needed to guarantee…" questions.
Counting in probability problems
Selecting with and without replacement
Draw r items from n
Ordered
Unordered
without replacement
(n−r)!n!
(rn)
with replacement
nr
(rn+r−1)
Quick revision
Practice questions
GATE-style questions: 5 one-mark and 5 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.
Q1MCQ1 mark
In how many ways can the letters of the word STATISTICS be arranged?
Q2NAT1 mark
The number of non-negative integer solutions of x1+x2+x3+x4=10 is ______.
Q3NAT2 marks
The number of integer solutions of x1+x2+x3=15 with x1≥2,x2≥3,0≤x3≤5 is ______.
Q4MCQ1 mark
Eight people sit around a circular table. In how many arrangements do two particular people, P and Q, sit next to each other? (Rotations of the same seating are considered identical.)
Q5NAT2 marks
Five letters are placed at random into five addressed envelopes, one letter per envelope. The number of ways in which no letter goes into its correct envelope is ______.
Q6MSQ2 marks
Which of the following identities are true for all integers n≥1?
One or more options are correct.
Q7NAT1 mark
A committee of 5 is chosen from 6 men and 4 women. The number of committees with at least 2 women is ______.
Q8MCQ1 mark
What is the minimum number of people needed in a room to guarantee that at least 3 of them have their birthday in the same month?
Q9NAT2 marks
How many integers between 1 and 1000 (inclusive) are divisible by none of 2, 3 and 5?
Q10NAT2 marks
The coefficient of x3y2z in the expansion of (x+2y+z)6 is ______.