NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Combinations, Group Division and Derangements | NIMCET

Learn the nCr formula and its properties, selections with restrictions, dividing objects into groups, distributing identical objects, derangements and geometry-based counting, for NIMCET.

5 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: A combination is a selection where order does not matter: nCr=n!r!(n−r)!^nC_r = \frac{n!}{r!(n - r)!}. Key properties are nCr=nCn−r^nC_r = {}^nC_{n - r} and nCr+nCr−1=n+1Cr^nC_r + {}^nC_{r - 1} = {}^{n + 1}C_r. Dividing m+nm + n distinct objects into groups of m and n (m≠nm \ne n) can be done in (m+n)!m! n!\frac{(m + n)!}{m!\,n!} ways. The number of derangements of n objects (none in its original place) is Dn=n!(1−11!+12!−⋯+(−1)nn!)D_n = n!\left(1 - \frac{1}{1!} + \frac{1}{2!} - \cdots + \frac{(-1)^n}{n!}\right).

This follows permutations: linear and circular arrangements.

nCr and its properties

PropertyStatement
FormulanCr=n!r!(n−r)!^nC_r = \frac{n!}{r!(n - r)!}
Link to permutationsnPr=r!⋅nCr^nP_r = r! \cdot {}^nC_r
SymmetrynCr=nCn−r^nC_r = {}^nC_{n - r}
Pascal's rulenCr+nCr−1=n+1Cr^nC_r + {}^nC_{r - 1} = {}^{n + 1}C_r
Equal valuesnCx=nCy⇒x=y^nC_x = {}^nC_y \Rightarrow x = y or x+y=nx + y = n
Sum∑r=0nnCr=2n\sum_{r=0}^{n}{}^nC_r = 2^n
Largest valueAt r=n2r = \frac{n}{2} (n even) or r=n±12r = \frac{n \pm 1}{2} (n odd)

Selections with restrictions

RestrictionCount
k particular objects always includedn−kCr−k^{n - k}C_{r - k}
k particular objects always excludedn−kCr^{n - k}C_r
At least one from n distinct2n−12^n - 1
From p alike, q alike, r alike (at least one)(p+1)(q+1)(r+1)−1(p + 1)(q + 1)(r + 1) - 1

Division into groups

SituationCount
m+nm + n objects into groups of m and n (m≠nm \ne n)(m+n)!m! n!\frac{(m + n)!}{m!\,n!}
2m objects into 2 equal groups (unlabelled)(2m)!2! (m!)2\frac{(2m)!}{2!\,(m!)^2}
3m objects into 3 equal groups (unlabelled)(3m)!3! (m!)3\frac{(3m)!}{3!\,(m!)^3}
Groups then given to distinct peopleMultiply by the number of ways to assign groups

Identical objects into boxes

SituationCount
n identical objects into r distinct boxes, empty allowedn+r−1Cr−1^{n + r - 1}C_{r - 1}
Each box gets at least onen−1Cr−1^{n - 1}C_{r - 1}
Non-negative solutions of x1+…+xr=nx_1 + \ldots + x_r = nn+r−1Cr−1^{n + r - 1}C_{r - 1}

Derangements

Dn=n!(1−11!+12!−13!+⋯+(−1)nn!)D_n = n!\left(1 - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \cdots + \frac{(-1)^n}{n!}\right)

n12345
DnD_n012944

Geometry counting

Quantity (n points)Count
Lines, no three collinearnC2^nC_2
Triangles, no three collinearnC3^nC_3
Diagonals of an n-sided polygonnC2−n=n(n−3)2^nC_2 - n = \frac{n(n - 3)}{2}
Lines when m of them are collinearnC2−mC2+1^nC_2 - {}^mC_2 + 1
Triangles when m are collinearnC3−mC3^nC_3 - {}^mC_3

Worked examples

Example 1: committee

A committee of 5 is chosen from 6 men and 4 women with at least 2 women. How many ways?

4C2 6C3+4C3 6C2+4C4 6C1=120+60+6=186^4C_2\,^6C_3 + {}^4C_3\,^6C_2 + {}^4C_4\,^6C_1 = 120 + 60 + 6 = 186

Example 2: equal nCr values

If nC8=nC6^nC_8 = {}^nC_6, find nC2^nC_2.

n=14n = 14, so 14C2=91^{14}C_2 = 91.

Example 3: group division

In how many ways can 12 different books be divided equally among 3 students?

12!(4!)3=34650\frac{12!}{(4!)^3} = 34650

(Groups are given to distinct students, so we do not divide by 3!3!.)

Example 4: identical objects

In how many ways can 10 identical balls go into 4 distinct boxes so that no box is empty?

9C3=84^9C_3 = 84.

Example 5: derangements

Four letters are placed in four addressed envelopes. In how many ways is every letter in a wrong envelope?

D4=24(1−1+12−16+124)=12−4+1=9D_4 = 24\left(1 - 1 + \frac{1}{2} - \frac{1}{6} + \frac{1}{24}\right) = 12 - 4 + 1 = 9.

Summary table

IdeaKey result
nCr^nC_rn!r!(n−r)!\frac{n!}{r!(n - r)!}
SymmetrynCr=nCn−r^nC_r = {}^nC_{n - r}
Identical into boxesn+r−1Cr−1^{n + r - 1}C_{r - 1}
Derangements of 49
Diagonalsn(n−3)2\frac{n(n - 3)}{2}

Exam tips

  • "At least" questions: split into cases, or subtract the complement from the total.
  • In group division, divide by k!k! only when equal-sized groups are unlabelled.
  • Memorise D3=2D_3 = 2, D4=9D_4 = 9, D5=44D_5 = 44.

Practise with the NIMCET permutations and combinations PYQs, or see the NIMCET Algebra chapter.

Common mistakes

  • Using permutations when order does not matter.
  • Dividing by k!k! for equal groups that go to distinct people.
  • Counting "at least one" as 2n2^n instead of 2n−12^n - 1.
  • Forgetting collinear points when counting triangles.

Frequently Asked Questions

What is the formula for nCr?

ⁿCᵣ = n!/(r!(n − r)!).

If nCx = nCy, what can you conclude?

Either x = y or x + y = n.

How many ways can n identical objects go into r distinct boxes?

ⁿ⁺ʳ⁻¹Cᵣ₋₁ if boxes may be empty, and ⁿ⁻¹Cᵣ₋₁ if every box must get at least one.

What is a derangement?

An arrangement in which no object is in its original position. For 4 objects there are 9 derangements.

How many diagonals does a polygon with n sides have?

n(n − 3)/2.

Concept Check

EXPERT

What is the value of tan⁡81∘−tan⁡63∘−tan⁡27∘+tan⁡9∘\tan 81^\circ - \tan 63^\circ - \tan 27^\circ + \tan 9^\circ?

Suggested for you