Learn this topic first

Skip to the questions ↓

Read this, then start. Tap a topic to open or close it.

Permutation and Combination
Exam weightage: HighAbout 1-2 questions per placement paper. Seen most in TCS NQT, Infosys. All topics

How many ways can 3 people stand in a line? Try it: 6. How many ways to pick 2 of them for a team? 3. Arranging and choosing are different questions.

The counting principle: boxes to fill

If one choice can be made in m ways and the next in n ways, together they can be made in m × n ways (AND means multiply).

Draw a box for each position and write the number of choices in it. Multiply.

Permutations: order matters

nPr = n! / (n - r)! = n × (n - 1) x ... (r numbers). Arranging all n things: n!.

Identical items: divide by the factorial of each repeat. Arrangements of BANANA = 6! / (3! 2!) = 60.

Combinations: order does not matter

nCr = n! / (r! (n - r)!) = nPr / r!. Teams, committees, handshakes, groups: choosing, not arranging.

nCr = nC(n - r): choosing 3 to play is the same as choosing 7 to sit out of 10.

Circles and restrictions

n people around a table: (n - 1)!. Fix one person; arrange the rest. Necklaces and garlands that can be flipped: (n - 1)!/2.

Two people must NOT sit together: total - (arrangements where they are together).

Repetition and restrictions

Repetition allowed: each box has all the choices again. A 4-digit PIN has 104 = 10,000 options.

A restriction on one position ('must start with a vowel', 'must be even'): fill that box FIRST, then the others.

Worked exampleHow many 3-digit numbers can be formed with the digits 1 to 6 if no digit repeats?
  1. Hundreds: 6 choices. Tens: 5. Units: 4.Each used digit is no longer available.
  2. 6 × 5 × 4 = 120.
Using P for a committee.
Committees have no order: use C.
Forgetting that a number cannot start with 0.
Count the first box separately.