Sum and product rules, permutations (with repetition, identical items, circular), combinations, stars and bars, and inclusion–exclusion; GATE asks direct counts and counts used inside probability questions.
Before you start
Factorials and basic algebra
Every count is written as factorials or binomial coefficients and then simplified.
Sum rule: if a task can be done in one of ways or one of ways, with no overlap, there are ways.
Product rule: if a task is a sequence of two stages, with ways for the first and ways for the second (whatever the first choice was), there are ways.
Most GATE counts are a product of stage counts, split into cases with the sum rule when a restriction changes the count of a later stage.
Strings of length over an alphabet of size : .
4-digit numbers with distinct digits: the first digit has 9 choices (no 0), then , giving .
Complement trick: "at least one" is usually easiest as total minus "none". Fill the most restricted position first (here, the leading digit).
2. Permutations: order matters
A permutation is an ordered arrangement. The number of ways to arrange of distinct objects in a row is
Situation
Count
All distinct objects in a row
positions, repetition allowed
objects with identical copies
distinct objects round a circle
Circle where clockwise = anticlockwise (necklace)
, for
For a circle, fix one object to remove rotations, then arrange the rest.
Together / apart rules: to keep certain objects together, glue them into one block and multiply by the arrangements inside the block. To keep objects apart, first arrange the others, then place the restricted ones in the gaps between them (the gap method).
3. Combinations: order does not matter
A combination is a selection where order is ignored. The number of ways to choose of distinct objects is
Useful identities:
(choosing who is in = choosing who is out).
Pascal: (the first object is in or out).
(number of subsets).
Permutation or combination? Ask whether swapping two chosen items gives a different outcome. A committee of 3: no, so combination. President, secretary, treasurer: yes, so permutation. Selecting then arranging is .
For restrictions such as "at least 2 women", either add the cases (exactly 2, exactly 3, …) or subtract the bad cases from the total. Never fix "one woman first" and then choose the rest freely: that counts some committees more than once.
4. Stars and bars: identical objects into distinct boxes
The number of ways to put identical objects into distinct boxes (boxes may be empty) equals the number of non-negative integer solutions of :
Write the objects as stars and separate boxes with bars; choose which of the positions hold bars.
Each box at least one: substitute , giving .
Lower bound : substitute and solve with total .
Selecting items from types with repetition (order ignored) is the same count, .
Upper bounds () need inclusion–exclusion: subtract the solutions where some .
Stars and bars: the solution (2, 1, 3) of x1 + x2 + x3 = 6 is one arrangement of 6 stars and 2 bars
5. Inclusion–exclusion and derangements
Inclusion–exclusion counts a union by correcting overlaps:
Example: among to , multiples of 3, 5 or 7 number (use for each term).
A derangement is a permutation with no element in its own place (no letter in its correct envelope). By inclusion–exclusion,
Values: , , , , . The fraction approaches .
Formulas to remember
Permutations
Combinations
Arrangements with identical items
Circular arrangementsDivide by 2 more if flipping gives the same arrangement
Stars and bars (non-negative solutions),
Stars and bars (positive solutions)
Pascal's rule
Derangements
Common mistakes
Using when the order of the chosen items does not matter (a committee, a hand of cards); divide by .
Counting "at least one" by fixing one item first and choosing the rest freely; this counts the same selection several times. Use total minus none.
Treating identical objects as distinct (or the reverse); stars and bars is only for identical objects into distinct boxes.
Using for a round table instead of , or forgetting the extra division by 2 for necklaces.
Forgetting to remove the leading zero when counting numbers of a given number of digits.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Arranging BANANA
numerical
How many distinct arrangements of the letters of BANANA are there? In how many of them are no two A's adjacent?
Step 1: Count the letters and the repeats.
Try it on paper first.
Example 2: Committee with at least two women
numerical
A committee of 5 is chosen from 6 men and 4 women. In how many ways can it have at least 2 women?
Step 1: Find the total with no restriction.
Try it on paper first.
Example 3: Distributing identical sweets
numerical
In how many ways can 10 identical sweets be given to 3 children (a) if a child may get none, (b) if each child gets at least one?
Step 1: Set up the equation.
Try it on paper first.
Example 4: Permutation or combination?
conceptual
From 8 students, (i) a captain and a vice-captain are chosen, (ii) a pair is chosen to attend a seminar. Which is a permutation count and which a combination count?
Step 1: Swap the two chosen students. Does the outcome change?
Try it on paper first.
Previous year questions
3 official GATE DA questions on this topic, newest first.
10 questions: up to 3 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.