Select Page

Permutation and combination advanced concepts is one of the most important and frequently tested topics in quantitative aptitude for competitive exams. It is asked in almost every major exam including CAT, SSC CGL, SSC CHSL, Bank PO, Bank Clerk, Railway RRB and CSAT. A strong understanding of these advanced concepts, formulas and tricks is essential for scoring well in these exams. This post covers number of integral solutions using multinomial theorem, special cases of integral solutions, application of multinomial in permutation with repetition, inclusion exclusion principle and dearrangement concept — all explained with clear formulas and solved examples.

                                   Number of Integral Solution
The formal expression of binomial theorem is as follows:

(a + b) = a b

⦿ (1 + x)ⁿ = 1 + ⁿC₁ x +ⁿC₂ x² + ⁿC₃ x³ + ⁿC₄ x⁴ + ……….
now understand multinomial theorem:-

(1-x) = 1 + nx + x + x +.............∞ = 1 + nx + x + Cx + Cx + ...............∞

∴ Coefficient of xʳ in (1-x)⁻ⁿ
= ⁿ ⁺ ʳ ⁻¹Cᵣ
& Since we know that ⁿCᵣ = ⁿCₙ₋ᵣ
∴ ⁿ ⁺ ʳ ⁻¹Cᵣ = ⁿ ⁺ ʳ ⁻¹C₍ₙ ₊ ᵣ ₋ ₁₎ – ᵣ
                   = ⁿ ⁺ ʳ ⁻¹Cₙ₋₁

= So to find the coefficient of x in (1-x): -= i.e. coefficient of x😃 in (1-x) = 😃

Example:-

⦿ Coefficient of x¹⁰ in (1-x)⁻ⁿ = ¹⁰⁺⁽ⁿ⁻¹⁾Cₙ₋₁
⦿ Coefficient of x¹⁵ (1-x)⁻ⁿ = ¹⁵⁺ⁿ⁻¹Cₙ₋₁
⦿ Coefficient  of x⁸ in (1-x)⁻ⁿ = ⁸⁺⁽⁵⁻¹⁾C₅₋₁ = ¹²C₄

(Q). Find the coefficient of x⁶ in ((1+x)¹⁰ + 10x³ + 6x⁶)

No contribution= Answer

⦿ n identical objects can be distributed among r person in 

x + x + x + x + .........+ x = nIdentical objectsr persons (different boxes)total (r-1) plates

So distribution of n identical object among r person & number of integral solution of equation x₁ + x₂ + x₃ + x₄ + x₅ + ……….. + xᵣ = n 
         where x₁, x₂, x₃, x₄, x₅,……….xᵣ ≥ 0
have the same solution which is 

Using Multinomial theorem to find the number of non-negative integral solution of equation
 x₁ + x₂ + x₃ + x₄ + x₅ + ……….. + xᵣ = n 

= coefficient of x in (.( ...........(total r brackets= coefficient of x in (= coefficient of x in (= coefficient of x in (Since these terms willnot contribute to powerof x= coefficient of x in = coefficient of x in (1-x)=

(Q). Find the number of non-negative integral solution of x + y + z = 20
Solution-

x + y + z = 20               x≥0
                                        y≥0
                                        z≥0

x + y + z = 20method (1):2

= ²⁰⁺²C₂
²²C₂ Answer

method(2):S= coefficient of p²⁰ in (p⁰ + p¹ + p² + …….. p²⁰)³
= coefficient of p²⁰ in (1 + p¹ + p² + …….. p²⁰ + p²¹ + p²² + …….. ∞)³
=  coefficient of p²⁰ in  \({\left( {\frac{1}{{1 – p}}} \right)^3}\)
= coefficient of p²⁰ in (1-p)⁻³
= ²⁰ ⁺ ⁽³⁻¹⁾C₃₋₁
=²²C₂ Answer

(Q). Find number of positive integral solution of x + y + z = 20
Solution:-

x + y + z = 20                  x≥ 1
                                           y≥ 1
                                           z≥1

method (1):x + y + z = 201 1 1x + y + z = 17 x⩾0 y⩾0 z⩾0= Answer

Method (2):-

Coefficient of p²⁰ in (p¹ + p² + p³ …….. p²⁰)³
= Coefficient of p²⁰ in (p + p² + p³ + …….. p²⁰+ ……..∞)³
= Coefficient of p²⁰ in  \({\left( {\frac{p}{{1 – p}}} \right)^3}\)

Coefficient of p²⁰ in p³(1-p)⁻³
= Coefficient of p¹⁷ in (1-p)⁻³
= ¹⁷⁺⁽³⁻¹⁾C₍₃₋₁₎
¹⁹CAnswer

(Q). Find the number of  non-negative integral solution of a + b + c + 4d = 20
Solution:-

a + b + c + 4d = 20                      20≥a≥0
                                                        20≥b≥0
                                                        20≥b≥0
                                                        5≥b≥0
Method(1):

a + b + c + 4d = 20 
⦿ d = 0 ⟹ a + b + c = 20 ⟹ ²²C₂
⦿ d = 1 ⟹ a + b + c = 16 ⟹ ¹⁸C₂
⦿ d = 2 ⟹ a + b + c = 12 ⟹ ¹⁴C₂
⦿ d = 3 ⟹ a + b + c = 8 ⟹ ¹⁰C₂
⦿ d = 4 ⟹ a + b + c = 4 ⟹ ⁶C₂
⦿ d = 5 ⟹ a + b + c = 0 ⟹ ²C₂

Hence Answer = ²²C₂ + ¹⁸C₂ + ¹⁴C₂

+ ¹⁰C₂ + ⁶C₂ + ²C₂
= 231 + 153 + 91 + 45 + 15 + 1
=536 Answer

Method(2):

a + b + c + 4d = 20
⟹ a + b + c = 20 – 4d
Let d be a contant k where 5≥k≥0
∴ a + b + c = 20 – 4k             5≥k≥0           

= ²²C₂ + ¹⁸C₂ +¹⁴C₂ + ¹⁰C₂ + ⁶C₂ + ²C₂
536 Answer

Methode(3): Using multinomial theorem:-

Coefficient of p²⁰ in (p⁰ + p¹ + p² + p³ …….. + p²⁰)³(p⁰ + p⁴ + p⁸ + p¹² + p¹⁶ + p²⁰)
= Coefficient of p²⁰ in (1 + p + p² + p³ …….. + p²⁰ + ……….∞)³ (p⁰ + p⁴ + p⁸ + p¹² + p¹⁶ + p²⁰)
=  Coefficient of p²⁰ in  \({\left( {\frac{1}{{1 – p}}} \right)^3}\)
 (p⁰ + p⁴ + p⁸ + p¹² + p¹⁶ + p²⁰)
=  Coefficient of p²⁰ in (1-p)⁻³ (p⁰ + p⁴ + p⁸ + p¹² + p¹⁶ + p²⁰)
= ²²C₂ + ¹⁸C₂ + ¹⁴C₂ + ¹⁰C₂ + ⁶C₂ + 1
536 Answer

(Q). Find number of non-negative integral solution of inequality
x₁ + x₂ + x₃ + x₄ + x₅ ≤ 20
Solution:- 

x₁ + x₂ + x₃ + x₄ + x₅ + k = 20         where 20≥k≥0
when k=0 then x₁ + x₂ + x₃ + x₄ + x₅ = 20
when k=1 then x₁ + x₂ + x₃ + x₄ + x₅ = 19
when k=2 then x₁ + x₂ + x₃ + x₄ + x₅ =18
           ⋮                                                            ⋮
           ⋮                                                            ⋮
           ⋮                                                            ⋮
           ⋮                                                            ⋮ 
when  k=20 then x₁ + x₂ + x₃ + x₄ + x₅ = 0

So on depending value of k (20≥k≥0)
value of expression automatically becomes
x₁ + x₂ + x₃ + x₄ + x₅ ≤ 20
                   

x₁ + x₂ + x₃ + x₄ + x₅ + k = 20 where 20⩾x, x⩾0 20⩾k⩾0

Hence number of intergral solution = ⁵⁺²⁰C₅ = ²⁵C₅ Answer

(Q). Find Number of integral solution off equation
x₁ + x₂ + x₃ + x₄ = 20               
                                             ;where x₁≥2
                                                            x₂≥4
                                                            x₃≥0
                                                            x₄≥6
Solution:-

Method(1):

 

= 202 4 0 612(20-12=8)C = C Answer

Method(2): Using Multinomial theorem:-

Coefficient of p²⁰ in (p² + p³ + p⁴ + ……… + p²⁰)(p⁴ + p⁵ + p⁶ + ……… + p²⁰)(p⁰ + p¹ + p² + p³ + …….. + p²⁰)(p⁶ + p⁷ + p⁸ + ….. + p²⁰)
= Coefficient of p²⁰ in (p² + p³ + p⁴ + …….. + ∞)(p⁴ + p⁵ + p⁶ + ……… ∞)(p⁰ + p¹ + p² + p³ + …….. ∞)(p⁶ + p⁷ + p⁸ + ….. ∞)
= Coefficient of p²⁰ in  \(\left( {\frac{{{p^2}}}{{1 – p}}} \right)\left( {\frac{{{p^4}}}{{1 – p}}} \right)\left( {\frac{1}{{1 – p}}} \right)\left( {\frac{{{p^6}}}{{1 – p}}} \right)\)
=Coefficient of p²⁰ in p¹²(1-p)⁻⁴
= Coefficient of p⁸ in (1-p)⁻⁴
=⁸⁺³C₃
¹¹C₃ Answer 

(Q). Find number of non-negative integral solution of 
a + b + c + d + e + f = 30
                     a + b + c = 17
Solution:-

a + b + c + d + e + f = 30 a + b + c = 17a + b + c = 17d + e + f = 13............. equation (i)............. equation (ii)both equation should be satisfied simultaneouslyHence Answerequation (i) AND equation (ii) should satisfy simultaneously

(Q). There are two sections A & B and there are 16 intermediate stations between A & B. A train is going from station A toward station B. In how many ways train can stop at 4 stations if no two stations should be consecutive. Train can take stoppage at any of these A, B & 16 intermediate stations.
Solution:-

(4)StoppageTrain⩾0 ⩾1 ⩾1 ⩾1 ⩾0 = 18 - 4(16 + 2 )AB = 14 Answer 1 1 1

(Q). There are 18 chairs. These chairs are to be occupied by 4 students. Find the number of possible arrangement if:-
(i) No two students sit side-by-side.
(ii) There should be atleast 3 empty chairs between any two students.
Solution:-

(i) 

= (18 -4)×4! Answer 1 1 1 ⩾0 ⩾1 ⩾1 ⩾1 ⩾0(ii)⩾0 ⩾3 ⩾3 ⩾3 ⩾0 = (14) 3 3 3= ×4! Answer

(Q) There are unlimited number of balls of colours Red, Green, Blue & White. They are all alike except for colour. In how many ways 20 balls can be selected?
Solution:-

R + B + G + W = 20⩾0 ⩾0 ⩾0 ⩾0= Answer

(Q). Let a student can score maximum 100 marks in physics, chemistry & math each. Then find the number of ways in which he can score a total of 170 marks while getting atleast 50 marks in each subjects. Only integral marks are allowed.
Solution:-

P    +    C    +    M = 170
                                                  100≥P≥50
                                                  100≥C≥50
                                                  100≥M≥50
Using Multinomial theorem

Coefficient of in (We can not extend this to unlimited terms in this questionbecause we are to find the coefficient of while gettingthe max tern in this G.P. i.e. Coefficient of in = Coefficient of in = Coefficient of in (1-(1-)w This term does not have any contribution to make powerof Hence we can ignore it.= Coefficient of in (1-= Answer

(Q). In the above question if the total numbers (marks) required are 240.
Solution:-
Coefficient of x²⁴⁰ in  \({\left[ {\frac{{{x^{50}}(1 – {x^{51}})}}{{(1 – x)}}} \right]^3}\)
= Coefficient of x²⁴⁰ in x¹⁵⁰(1-x⁵¹)³(1-x)⁻³

= Coefficient of x⁹⁰ in (1-x⁵¹)³(1-x)⁻³In this case terms can not be neglected becausse it has contribution to make power of x

= Coefficient of x⁹⁰ in (1-x⁵¹)³(1-x)⁻³
= Coefficient of x⁹⁰ in (1 – 3x⁵¹ + 3x¹⁰² – x¹⁵³)(1-x)⁻³
                                        
⁹⁹C₂ – 3.⁴¹C₂ Answer

(Q). In how many ways a batman can score 20 runs out of six balls if he can score 0, 1, 2, 3, 4, 5 or 6 runs at a particular ball?
Solution:-

x₁ + x₂ + x₃ + x₄ + x₅ + x₆ = 20
                                                                6≥x₁, x₂, x₃, x₄, x₅, x₆≥0
∴ Coefficient of p²⁰ in (p⁰ + p¹ + p² + p³ + p⁴ + p⁵ + p⁶)⁶
= Coefficient of p²⁰ in  \({\left[ {\frac{{(1 – {p^7})}}{{(1 – p)}}} \right]^6}\)
= Coefficient of p²⁰ in (1 – p⁷)⁶(1 – p)⁻⁶

 

= Coefficient of p in (1-ignore ignore

²⁵C₅ – ⁶C₁×¹⁸C₅ + ⁶C₂×¹¹C₅ Answer

(Q). a+b+c+d+e+f = 20; find the number of integral solution of this equation
If 10≥a≥5
     b, c, d, e≥0
Solution:- 

= Unfavourable casesa⩾5 a⩾11Answer
a + b + c + d + e + f = 20 ⩾0 ⩾0 ⩾0 ⩾0 8⩾a⩾510⩾b⩾7(Q).Solution: -Method (1):a⩾5 & b⩾7All cases where a⩾5 & b⩾7 - C - C + 1a⩾9 & b⩾7b⩾22 & a⩾5= 1036 Answer

Method (2):

Coefficient of  p²⁰ in (p⁵ + p⁶ + p⁷ + p⁸)( p⁷ + p⁸ + p⁹ + p10)(p⁰ + p¹ + p² + p³ + ……. + p²⁰)⁴
= Coefficient of  p²⁰ in p⁵(1 + p + p² + p³).p⁷.(1 + p + p² + p³)(1 + p + p² + p³+ …….. p²⁰)⁴
= Coefficient of  p²⁰ in p¹²(1 + p + p² + p³)²((1 + p + p² + p³ + ……… + p²⁰)⁴
= Coefficient of p⁸ in  \({\left[ {\frac{{1 – {p^4}}}{{1 – p}}} \right]^2}{\left[ {\frac{1}{{1 – p}}} \right]^4}\)
= Coefficient of p⁸ in (1-p⁴)²(1-p)⁻⁶
= Coefficient of p⁸ in (1-2p⁴+p⁸)(1-p)⁻⁶
= ¹³C₅ – 2×⁹C₅ + 1
1036 Answer

(Q). Find number of integral solution of equation
x₁ + x₂ + x₃ + x₄ + x₅ = 48
if x₁, x₂, x₃, x₄, x₅ 
← evennumbers; ≥0
Solution:-

2n₁ + 2n₂ + 2n₃ + 2n₄ + 2n₅ = 48
⟹ n₁   +   n₂   +   n₃   +   n₄   +   n₅ = 24
      ≥0       ≥0         ≥0      ≥0         ≥0
²⁸C₄ Answer

                                        Special cases of Integral Solution

case (1):            a + b + c = n                condition a>b>c≥0

Number of possible intergral solutions
=  \(\left[ {\frac{{{n^2} + 6}}{{12}}} \right]\)    where [x] → Greatest integer function

case (2):         a + b + c = n                 condition a≥b≥c≥0
Number of possible integral solutions
=  \(\left[ {\frac{{{n^2} + 6}}{{12}}} \right] + \left[ {\frac{n}{2}} \right] + 1\)    where [x] → Greatest integer function

case (3):        |x| + |y| = n
Number of integral solution = 4n

case (4):         |x| + |y| < n
Number of integral solution ⟹ 1 + 4(1 + 2 + 3 + …… + (n-1))

case (5):         |x| + |y| ≤ n
Number of integral solution ⟹ 1 + 4(1 + 2 + 3 + 4 + …….. + n)

case (6):        |x| + |y| + |z| = n
Number of integral solution ⟹ 4n² + 2

case (7):        |x| + |y| + |z| + |w| = n
 
Number of integral solution \(\boldsymbol{\frac{{8n}}{3}.\left( {{n^2} + 2} \right)}\)

case (8):        x * y = n

If n is NOT a perfect square then number of positive integral solutions =  \(\frac{{\left( {number\;of\;factors\;of\;n} \right)}}{2}\)
& number of total integral solutions = 2*(number of positive integral solutions)
= 2*\(\frac{{\left( {number\;of\;factors\;of\;n} \right)}}{2}\)

If n is a perfect suqare
then number of positive integral solutions =  \(\frac{{\left( {number\;of\;factors\;of\;n \;+\; 1} \right)}}{2}\)

total integral soluions = 2*\(\frac{{\left( {number\;of\;factors\;of\;n \;+\; 1} \right)}}{2}\)

case (9):        x*y*z = n

Let n =  \({a^{{p_1}}}*{b^{{p_2}}}*{c^{{p_3}}}*…………..\)
then number of ORDERED POSITIVE integral solutions =

(C*(C*(C*................

& number of ORDERED integral solutions = 4 * number of ordered positive integral solutions

case (10):        ax + by = n

⟹ First, reduce the given equation in lowest reducible form.
After reducing, if coefficients of x and y still have a factor in common, the equation will have no solutions.
if x & y are co-prime in lowest reducible form, find one solution of x. Then the other solutions can be listed as an arithmetic progression with common difference as the co-efficient of y which can be easily counted.
if equation is of the form ax+by=n then increase in x as coefficient of y will cause decrease in coefficint of y as a step of coefficient of x.
if equation is of the form ax-by=n then increase in x as a step of coefficient of y will cause an increase in coefficient of y as a step of coefficient of x.

⟹ Shortcut: if for ax+by=n either of a or b can divide n, then number of non negative integral solutions =  \(\left[ {\frac{n}{{L.C.M.(a,b)}}} \right] + 1\)

Let us understand this concept by example:-
Example: Find positive integral solution of 2x+3y = 30
Solution:- 

x = 0 ⟶ y = 10 ❌

x = 1 ⟶ y = \(\frac{{28}}{3}\) ❌

x = 2 ⟶ y = \(\frac{{26}}{3}\) ❌

x = 3 ⟶ y = \(\frac{{24}}{3}\) = 8 ✅

x = 6 ⟶ y = 6

x= 9 ⟶ y = 4

x = 12 ⟶ y = 2

x = 15 ⟶ y = 0 ❌ ⟶ not positive

So there are total 4 positive integral solutions.
& there are total 6 non-negative integral solutions of above equation as case( x=15, y=0) & (x=0, y=10) will also be counted.

Example:- Find number of positive & non-negative integral solution of equation 2x + 3y = 57
Solution:-

x = 0 ⟶ y = \(\frac{{57}}{3}\) = 19 

x = 1 ⟶ y = \(\frac{{55}}{3}\) ❌ 

x = 2 ⟶ y = \(\frac{{53}}{3}\)  ❌

x = 3 ⟶ y = \(\frac{{51}}{3}\) = 17

x = 4 ⟶ y = \(\frac{{49}}{3}\) ❌

x = 5 ⟶ y = \(\frac{{47}}{3}\) ❌

x = 6 ⟶ y = \(\frac{{45}}{3}\) = 15

x = 9 ⟶ y = 13

x = 12 ⟶ y = 11

x = 15 ⟶ y = 9

x = 18 ⟶ y = 7

x = 21 ⟶ y = 5

x = 24 ⟶ y = 3

x = 27 ⟶ y = 1

x = 30 ⟶ y = -1 ❌ 

Hence total number of non-negative integral solution = 10
& total number of positive integral solution = 9

Shortcut Since 57 is divisible by 3
Hence number of non-negative integral solution
=  \(\left[ {\frac{{57}}{{LCM(2,3)}}} \right] + 1\)

=  \(\left[ {\frac{{57}}{6}} \right] + 1\)

= 9 + 1

10 answer

case (11):        
\(\frac{a}{x} \pm \frac{b}{y} = \frac{1}{n}\)

\(\frac{a}{x} + \frac{b}{y} = \frac{1}{n}\)

F = factors of (a*b*n²)
Total integral solution = 2F – 1
Total positive integral solution = F
Total negative integral solution = 0

\(\frac{a}{x} – \frac{b}{y} = \frac{1}{n}\)

F = number of factors of (a*b*n²)
Total integral solution = 2F – 1
Total positive integral solution = \(\frac{{(F – 1)}}{2}\)

Total negative integral solution = \(\frac{{(F – 1)}}{2}\)

Example:- Find total integral & positive solution of equation \(\boldsymbol{\frac{{16}}{x} + \frac{5}{y} = \frac{1}{3}}\)
Solution:-

F = number of factors of (16×5×3²)
= number of factors of (2⁴×3²×5¹)

F = 5×3×2
= 30
∴ total integral solution = 2F – 1 = 60 – 1 = 59
& total positive integral solution = F = 30 Answer

Example:- Find total integral, positive & negative solution of equation  \(\boldsymbol{\frac{4}{x} – \frac{1}{y} = \frac{1}{5}}\)
Solution:-

F = number of factors of (4 * 1 * 5²)
= number of factors of (2² * 52)
= 3×3 = 9

∴ total integral solution = 2F – 1 = 18 – 1 = 17
total positive integral solution = \(\frac{{(F – 1)}}{2} \;=\; \frac{{(9 – 1)}}{2}\; = 4\)

total negative integral solution = \(\frac{{(F – 1)}}{2}\) =  \(\boldsymbol{\frac{{(9 – 1)}}{2}}\) = Answer

                                            Application of Multinomial in Permutation with Repetition:-

⦿ Number of selection/combination of r things out of n things of which p are alike of one kind & q are alike of second kind and remaining (n-p-q) things are all different is given by
⟹ coefficient of xʳ in (1+x+x²+……..+xᵖ)(1+x+x²+……..+xᑫ){(1+x)(1+x)……… till (n-p-q) times}

= coefficient of +...... + )+...... + )(1

⦿ The number of permutation/arrangement of r things out of n things of which p are alike of one kind & q are alike of second kind and so on……….

= r!.coefficient of

Example:- Let there are
                                p, q ━ 5
                                r, s ━ 4
                                    t ━ 3
                          u, v, w ━ 1
then find the number of permutation/arrangement of 5 letter words selected from given letters
Solution:- 

Using Multinomial theorem:-

Required number of permutations = 5!.coefficient of in = 5!.coefficient of in = 120.coefficient of in = 120.coefficient of in . = 120.coefficient of in = 120= 120= 21462 Answer= 120.coefficient of in

Method(2):       Listing all cases: 

p p p p pp' box5pq q q q q 5qq' boxr r r r 4rr' boxs s s s 4ss' boxt t t3tt' boxu1uu' boxvwv' boxw' box1v 1w S.No.Selection typeNumber of waysof selectionNumber of ways of permutationNumber of words formedof given type12345675-alike²C₁²C₁ × 14-alike +1-different⁴C₁×⁷C₁⁴C₁×⁷C₁×3-alike + 2-alike⁵C₁×⁴C₁⁵C₁×⁴C₁×3-alike + 1-diff.+ 1-diff⁵C₁×⁷C₂⁵C₁×⁷C₂×2-alike + 2-alike1-different⁵C₂×⁶C₁⁵C₂×⁶C₁×2-alike + 1-diff.1-diff. + 1-diff.⁵C₁×⁷C₃⁵C₁×⁷C₃×all different⁸C₅5!⁸C₅×5!required answer will be sum of all terms of this column = 2 + 140 + 200 + 2100 + 1800+ 12500 + 6720 = 21462 Answer

Example:- In how many ways 4 letters of the word ‘PARALLEL’ can be selected & how many 4 letter words can be formed?
Solution:-

L ━ 3        A ━ 2        P ━ 1        R ━ 1        E ━ 1
∴ Required number of ways sof selection:-

= coefficient of in = coefficient of in = cooefficient of in = 2 + 9 + 9 + 2= 22 Answer⦿ Required number of ways of permutation: -= 4!.coefficient of in = 4!. coefficient of in = 4!. coefficient of in = 4!.coefficient of in = = = 286 Answer
Method (2): - Listing all possible cases:L L LL' boxA AA' boxPREP' boxR' boxE' boxS. No.Selection TypeNumber of waysof selectionNumber of waysof permutationNumber of wordsformed of given type12343 - alike + 1 - diff.2 - alike + 2 - alike2 - alike + 1 - diff.+ 1- diff.all different1×⁴C₁1²C₁×⁴C₂⁵C₄1×⁴C₁ײC₁×⁴C₂×⁵C₄×∴ Total number of ways of selection =1×⁴C₁ +1 +²C₁×⁴C₂ +⁵C₄= 4 + 1 + 2×6 + 5= 22 Answer& Total number of 4 letter words = 16 + 6 + 144 + 120 = 288 Answer

Example:- Find the number of 5-letter words that can be formed from the letters given below:-

p, q, r ━ 6
     s, t ━ 5
     u, v ━ 4
     w, y ━ 3
Solution:- 

Method(1):

Required number of 5-letter words:-

= 5!.coefficient of in = 5!.coefficient of in equation (i)equation (ii)equation (iii)equation (iv)Now equation (i): - = =========

∴ Required number of 5-letter words:-
5!.coefficient of x⁵ in
equation(i).equation(ii).equation(iii).equation(iv)

= 5!.coefficient of in = 5!.coefficient of in = 5.coefficient of in = = = 58965 Answer
Method (2): - Listing all possible cases:ppppppp' boxqqqqqqq' boxrrrrrrssssstttttr' boxs' boxt' boxS. No.Selection TypeNumber of waysof selectionNumber of waysof permutationNumber of wordsformed of given type12345 - alike4 - alike + 1 - diff3 - alike + 2 - alike⁷C₁×⁸C₁⁵C₁uuuuvvvvwwwyyyu' boxv' boxw' boxy' box6 6 6 5 5 4 4 3 3567all different3 - alike + 1 - diff. + 1 - diff.2 - alike + 2 - alike + 1 - diff.2 - alike + 1 - diff. + 1 - diff. + 1 - diff.⁹C₁×⁸C₁⁹C₁×⁸C₂⁹C₂×⁷C₁⁹C₁×⁸C₃⁹C₅⁵C₁×1 = 5⁷C₁×⁸C₁×5 = 280⁹C₁×⁸C₁×10 = 720⁹C₁×⁸C₂×20 = 5040⁹C₂×⁷C₁×30 = 7560⁹C₁×⁸C₃×60 = 30240⁹C₅×120 = 15120∴ Required number of 5-letter words = 5 + 280 + 720 + 5040 + 7560 + 30240 + 15120 = 58965 Answer

Method(3):

            p, q, r ━ 6
                  s, t ━ 5
                  u, v ━ 4
                  w, y ━ 3

Counting favourable & unfavourable cases:-

99999= when all lettersavailable at least 5-timesunfavourable cases: -u u u u uv v v v vw w w w wy y y y yunfavourable cases: -as: - w w w wq= 58965 Answer

(Q) consider a word ‘EXAMINATION’. In how many ways 4 letters of this word can be selected & how many 4-letter words can be formed from this word?
Solution:-

using multinomial theorem:-

                    A ━ 2
                     I ━ 2
                    N ━ 2
E, X, M, T, O ━ 1

∴ required number of selection  

= coefficient of x⁴ in (1 + x + x²)³ (1 + x)⁵
= coefficient of x⁴ in (1 +  x² + x⁴ + 2x + 2x³ + 2x²) (1 + x + x²) (1 + x)⁵
=  coefficient of x⁴ in (1 + 2x + 3x² + 2x³ + x⁴) (1 + x + x²) (1 + x)⁵
= coefficient of x⁴ in
(1 + 2x + 3x² + 2x³ +  x⁴
    +  x  +  2x² + 3x³ + 2x⁴  +  x⁵
             +   x²  + 2x³ + 3x⁴  +  2x⁵ + x⁶).(1 + x)⁵
=  coefficient of x⁴ in (1 + 3x + 6x² + 7x³ +  6x⁴)*(1 + x)⁵
= ⁵C₄ + 3×⁵C₃ + 6×⁵C₂ + 7×⁵C₁ + 6×1
= 5 + 3×10 + 6×10 + 7×5 + 6
136 Answer

⦿ Now Required number of 4 – letter words:- 

= 4!.coefficient of in = 4!.coefficient of in = 4!.coefficient of in = 4!.coefficient of in = 4!.coefficient of in = = = = = 2454 Answer
Method (2): - Listing all possible cases:S. No.Selection TypeNumber of waysof selectionNumber of waysof permutationNumber of wordsformed of given type12344 - alike3 - alike + 1 - diff2 - alike + 2 - alike0052 - alike + 1 - diff. + 1 - diff.All different187561680A AA' box I' box N' box E' box X' box M' box T' box O' boxI IN NEXMTO2 2 2 1 1 1 1 1 0000

Hence from above table ⟹
Required number of selection = 3 + 63 + 70
                                                       = 136 Answer

& Required number of 4-letter words = 18 + 756 + 1680
                                                                     = 2454 Answer

                                                   Inclusion – Exclusion principle:-

Number of ways = (Total number of ways) – (number of ways when restriction fails atleast once) + (Number of ways when restriction fails at least twice) – (Number of ways when restriction fails at least thrice) + (Number of ways when restriction fails atleast four times) – ……………..

Example:- Let a 9 digit number is to be made which should not contain digits 0, 5 and 7 & must contain digits 1, 2, 4, 8.
Solution:-

1, 2, 4, 83, 6, 9

Number of ways = 7⁹ – ⁴C₁.6⁹ + ⁴C₂.5⁹ – ⁴C₃.4⁹ + ⁴C₄.3⁹

                              = 40353607 – 40310784 + 11718750 – 1048576 + 19683
                              = 10732680 Answer

                                                 De – arrangement:-

Let there are n different colour boxes & correspondingly n different colour balls.
Now we are to put these balls into boxes (one in each) such that no two colour matches.

= n! – ⁿC₁.(n – 1)! + ⁿC₂.(n – 2)! – ⁿC₃.(n – 3)! + ………(-1)ⁿ ⁿCₙ.(n – n)!

= =

Example:-  Let there are 8 addressed envelope & 8 corresponding letters. In how many ways we can put these letters in envelope (one in each) such that
(i). No letter goes to righ envelope
(ii). Exactly 3 letters are placed correctly
(iii). Exactly 3 letters are placed wrongly.
Solution:-

(i).

\(8!.\left( {1 – \frac{1}{{1!}} + \frac{1}{{2!}} – \frac{1}{{3!}} + \frac{1}{{4!}} – \frac{1}{{5!}} + \frac{1}{{6!}} – \frac{1}{{7!}} + \frac{1}{{8!}}} \right)\)

Answer

(ii). Since exactly 3 letters are placed correctly,
∴ First select 3 letters out of 8 letters. this can be done in ⁸C₃ ways & these letters can be placed correctly only 1 way.
Now remaining 5 letters are de-arranged
Hence total number of ways
= ⁸C₃.5!. \(\left( {1 – \frac{1}{{1!}} + \frac{1}{{2!}} – \frac{1}{{3!}} + \frac{1}{{4!}} – \frac{1}{{5!}}} \right)\)  Answer

(iii). Since exactly 3-letters are are placed wrongly.
∴ 8 – 3 = 5 letters are placed correctly.
Hence total number of ways
= ⁸C₅.1.3! .\(\left( {1 – \frac{1}{{1!}} + \frac{1}{{2!}} – \frac{1}{{3!}}} \right)\)  Answer

❓ Frequently Asked Questions on Permutation and Combination Advanced Concepts

Q1. What is the formula for number of non-negative integral solutions of x₁ + x₂ + … + xᵣ = n?

The number of non-negative integral solutions of x₁ + x₂ + x₃ + … + xᵣ = n where each variable is greater than or equal to 0 is given by (n+r-1)Cᵣ₋₁. This is derived using the multinomial theorem where the coefficient of xⁿ in (1-x)⁻ʳ equals (n+r-1)Cᵣ₋₁. For example the number of non-negative integral solutions of x + y + z = 20 is 22C2. This concept is a fundamental application of stars and bars method in combinatorics and is frequently asked in CAT and SSC CGL exams.

Q2. What are the special cases of integral solutions?

There are several special cases of integral solutions. For a + b + c = n with condition a > b > c ≥ 0 the number of solutions = [(n²+6)/12]. For a + b + c = n with condition a ≥ b ≥ c ≥ 0 the number of solutions = [(n²+6)/12] + [n/2] + 1. For |x| + |y| = n the number of integral solutions = 4n. For |x| + |y| ≤ n the number of solutions = 1 + 4(1+2+3+…+n). For x×y = n the number of positive integral solutions depends on whether n is a perfect square or not and uses the number of factors of n.

Q3. How to find number of integral solutions of ax + by = n?

To find integral solutions of ax + by = n first reduce the equation to lowest form. If coefficients of x and y after reducing still have a common factor then there are no solutions. If x and y are coprime find one solution and then other solutions form an arithmetic progression with common difference as coefficient of y for x and coefficient of x for y. A shortcut for non-negative integral solutions is [n/LCM(a,b)] + 1 when either a or b divides n. For example non-negative solutions of 2x + 3y = 57 = [57/6] + 1 = 10.

Q4. How is multinomial theorem applied in permutation with repetition?

The number of ways of selecting r things from n things where p are alike of one kind and q are alike of another kind is the coefficient of xʳ in (1+x+x²+…+xᵖ)(1+x+x²+…+xᑫ)(1+x)ⁿ⁻ᵖ⁻ᑫ. The number of arrangements of r things from such a group = r! × coefficient of xʳ in the same expression. For example the number of 4-letter words from letters of EXAMINATION = 4! × coefficient of x⁴ in (1+x+x²)³(1+x)⁵ = 2454.

Q5. What is the inclusion exclusion principle in permutation and combination?

The inclusion exclusion principle states that number of ways = total number of ways – number of ways when restriction fails at least once + number of ways when restriction fails at least twice – number of ways when restriction fails at least thrice and so on. For example to make a 9-digit number that must contain digits 1, 2, 4, 8 and must not contain 0, 5, 7 the answer = 7⁹ – 4C1×6⁹ + 4C2×5⁹ – 4C3×4⁹ + 4C4×3⁹ = 10732680. This principle is frequently asked in CAT exams.

Q6. What is dearrangement and what is its formula?

Dearrangement is the number of ways of arranging n objects such that no object goes to its original position. The formula is Dₙ = n!(1 – 1/1! + 1/2! – 1/3! + … + (-1)ⁿ/n!). For example if there are 8 addressed envelopes and 8 corresponding letters the number of ways to put all letters in wrong envelopes = 8!(1 – 1/1! + 1/2! – 1/3! + 1/4! – 1/5! + 1/6! – 1/7! + 1/8!). If exactly k letters must go to correct envelopes then multiply nCk by the dearrangement of remaining (n-k) letters.

Q7. What is the coefficient of xʳ in (1-x)⁻ⁿ and how is it used?

The coefficient of xʳ in (1-x)⁻ⁿ = (n+r-1)Cᵣ = (n+r-1)Cₙ₋₁. This result comes directly from the multinomial theorem expansion of (1-x)⁻ⁿ. It is the key formula used to find number of integral solutions, number of terms in polynomial expansions and number of ways to distribute identical objects. For example coefficient of x⁸ in (1-x)⁻⁵ = 8+(5-1)C(5-1) = 12C4. This formula is one of the most powerful tools in advanced permutation and combination problems in CAT and SSC CGL.

Q8. Where can I practice advanced permutation and combination questions?

After understanding the concept you can practice on our Advanced Permutation and Combination Exercise page which contains a large number of solved practice questions. You can also check our Division and Distribution Concept and Permutation and Combination Concept pages for related topics.