PNC Iquants
PNC Iquants
PNC Iquants
3) Number of ways of choosing any number of things out of n distinct things is 2^n
4) Number of ways of choosing atleast one thing out of n distinct things is 2^n -1
Reasoning in comment
3) Number of ways of choosing any number of things out of n distinct things means you can
either select 0 nunber of things in nC0 ways
or you can choose 1 number of thing out of n in Nc1 ways
or you can choose 2 things in nC2 ways.
4) when it says atleast 1 means we have to eleminate the case when 0 number of things are
chosen in Nc0 = 1 way
so total 2^n - 1
soln: total ways - number of ways of selecting 0 - number of ways of selecting 1 thing
Atleast 4
So 4,5,6,7,8,9,10 can be chosen
So 1+1+1+1+1+1+1=7 .
#PnC_basics
5) Number of ways of selecting any number things from n identical things is n+1
5) Number of ways of selecting any number of things out of 5 identical thigns means number of
ways of selecting 0 thing, or 1 thing or 2 thign or 3 or 4 or 5 things
#PnC_basics
7) Number of ways of distributing n identical things among r people/groups such that any person
may get any number of things is (n+r-1)C(r-1)
8) Number of ways of distributing n identical things among r people/groups such that all get
atleast 1 is (n-1)C(r-1)
Lets assume there are 5 identical balls to be distributed among 3 distinct boxes.
5 cases =>
5,0,0 : 3!/2= 3 ways
4,1,0 : 3!=6
3,2,0, : 3!=6
3,1,1 : 3!/2 = 3
2,2,1 : 3!/2=3
Total : 21 ways
Which can also be solved using partition method. Where we assum the two partitions as balls
and select them in 7c2=21 ways
Take example of a + b + c = 5
(a+1)+(b+1)+(c+1)= 5
a+b+c = 2
Q. How many ways can you distribute 4 identical balls into 5 distinct boxes
Q. How many ways can you distribute 4 distinct balls into 5 distinct boxes
1) (4+5-1)C(5-1) = 8C4
Q) How many 3 digit numbers can be made if first digit can take numbers from 1 to 5 , second
digit can take 3 to 6 and last can take all digits ?
OA: 200=5*4*10
MNP rule : For counting number of ways of doing 3 things and each of them has to be done
and there are m ways of doing first ghing, n ways of doing second and p ways of doing third
thing then total number of ways of doing all the things is m*n*p
Q) How many ways we can choose a vowel and a consonant from PERMIT ?
Oa : 1. 2C1*4C1 = 8
2. 2C2+4C1 = 5
Its just selection.
Note:
AND / OR rule :
Whenever you see there is AND used, replace that word with multiplication sign
#Circular_Permutation
The number of ways in which n distinct things can be placed around a circle is (n-1)!. The need
to reduce 1 is due to the fact that there is no defined starting point.
So to remove symmetry we just put one of them in 1 way, and as now the symmetry is removed
hence remaining is arranged in the normal way in (n-1)!.
#PnC_basics
Oa :
6!=720
5!/2=60
PNC -2
#Veryimportant
oa: 49c3
Soln: Just express all as even numbers that x = 2a, y = 2b, z= 2c, w = 2d
so 2a+2b+2c+2d = 100,
a+b+c+d = 50,
a+b+c+d+...+j = 1000
2(a+b+c+d+e+f+g+h+i+j) = 1000
so (a+b+c+d+e+f+g+h+i+j = 500
(500+10-1)C(10-1)=509c9
Oa: 50c2
so we get (2a+1)+(2b+1)+(2c+1)=99
Oa= 75c2
(2a+1)+(2b+1)+(2c+1)= 149
a+b+c= 73
Just see it as 2a+1 = smallest odd natural k liye a should be equal to what ?
a=0 hence we will take non negative soln here for the changed equation.
so (73+3-1)C(3-1)= 75c2
Oa : 0
8) Number of integral solutions of x+y+z = 10, such that all are greater than 2 is ?
so if you add 3 to all , ie., x+3 and get non negative integral solution then even if x= 0 you get 3
as minimum hence do same with all variable
(x+3)+(y+3)+(z+3) = 10
Note : as all greater than 2 hence they all are already natural numbers hence cant be infinite.
9. How many ways 36 can be represented as sum of 3 natural numbers ?
Oa:
35c2-3*17-1/6+18
#Important
Now pay attention, this is a very basic but very important which very few people know i assure
you. That the post i gave was x+y+z .. = n
but no first one ie., x+y+z= n, gives the ordered solution while later one should give unordered
solution.
Former one is ordered because x, should take all the possible values which even y and z took
eg.. x+y+z = 2, its non negative solutions are = 1,1,0, 0,1,1 or 1,0,1 or 2,0,0, or 0,2,0 or 0,0,2 so
total 6 solutions = (2+3-1)c(3-1) = 4c2 = 6
but when asked sum of three numbers = 2 then its just 1,1,0 and (2,0,0) ie., just 2
Why ? Coz there are some solutions which are all even or all odd but there are also some
solutions which consists of both odd and even numbers.
■2) Whenever variables are mentioned we take ordered solutions and when variables arent
mentioned we take unordered solutions .
PNC -3
1. How many ways can we represent 49 as sum of two non negative integers ?
Oa: 25
but as i have already told, when nothing mentioned we find unordered solutions,
so its 50/2! = 25
●As i told in the earlier class, that when x,y,z variables are not mentioned then we will find out
unordered solutions.
Now See in 99c2 we have all the ordered solutions, in which there are two types of solutions
which are (a,b,c) each arranged in 3! ways and another type is (a,a,b) each arranged in 3!/2
ways
what we are doing is just dividing distinct set by 3! (as each set is repeated 3! times) and those
set (a,a,b) type in 3!/2 ways .
Now first calculate a,a,b type here two are equal ie., x= y
2x+y =100, x => can go from 1 to 49, while each can be arranged in 3!/2 =3 ways
after we remove it from total ie., 99c2, we are left with all distincrt.
ie., 99c2 - 3*49 contains all distinct set, and we know all distinct sets are arranged in 3! ways so
divide it by 3!
so total (99c2-3*49)/3! + 49
Ordered :
a,a,b type = 2a+b=200--->1 to 99 = 3*99
a,b,c type = 199c2 - 3*99
a,a,a type = 0
4. How many ways can we represent 198 as sum of three non negative integers ?
Soln: here as x,y,z are given so we will find ordered solution but distinct
So removing these cases from total we will be left with distinct ordered
oa : 6
we need unordered positive solutions so just number of factor pairs = number of factors/2 = 12/2
=6
2*12 = 24.
PNC -4
Ques: 1) Number of ways of distributing 5 identical balls into 3 distinct boxes are ?
Distinct to distinct
Where = boxes = 5
What = balls = 10
When a=b
2a+b=17, a=> 0 to 8 : 9 cases
So unordered : (19c2-3*9)/3!+9
5) Number of ways of distributing 37 identical balls into 3 identical boxes such that there are
atleast 3 balls in each box are ?
So unordered solution of
(a+3)+(b+3)+(c+3)=37,
a+b+c=28, => 30C2
when a=b
Required : (30c2-3*15)/3! + 15 = 80
6) How many ways can you distribute 15 identical marbles among 3 groups ?
So a + b + c = 15
When a=b
2a+b=15, a= 1 to 7
a=b=c=5 , 1 case
Coz a group with 0 balls doesnt exist. Hence will take natural solutions.
A) 3 boxes , 5 balls ( even If third box has 0 the box is still there
(13c2-6*3)/3!+6
All correct. Oa : 16
I think everyone is clear now. Last year everyone did it wrong in aimcat mock.
■Identical boxes
■Distinct balls
B) last two ?
5,0,0
4,1,0
3,2,0
3,1,1
2,2,1
Only case identical will be when there are two zeroes ie 5,0,0 case
So total 3^5
In which all are distinct arranged in 3! Ways
So unordered: (3^5-3*1)/3!+1 = 41
Total : 14
PNC-5
First lets do some basic questions.
|x|=100,
How many
1) integral solutins
2) Natural solutions
3) Real solutions
Oa :
1) 2--- -100,+100
2) 1---100
3) 2 ----100,+100
Any doubt ?
1) natural
2) integral
3) real
oa : 9,18 , infi
2) 2*number of factors
if the question was in how many ways 100 can be written as product of two numbers, then we
will take unordered.
Solutions :
100 = 2^2*5^2
ordered, = 4c2*4c2=36
(36-12)/3!+4= 8
=> a,a,b will be same as number of perfect square in the number, as we need any number twice
to satisfy, hence.
■a,a,a, will always be 1 at max, as its a triplet, hence only one possible way . ( possible only if
the number is cube)
note: in case there is an (a,a,a,) triplet possible, then automatically a,a,b triplet will get one less
just like we did in sum of 3 numbers unorder ways .
Awesome _/\_
unordered = (180-3*4)/3!+4 = 32
Q) x*y*z=1000,
1) natural solutions
2) integral solutions
Solution 1000=2^3*5^3
Natural : 5c2*5c2=100
Integral. : here we can have any two out of 3 elements as negative. ( if abc = (-a)(-b)c
So for negative any two of the three can be negative in 3c2=3 ways so 3*100=300 negative
solutions
Total = 100+300=400
Oa: 19
216 =2^3*3^3
Ordered : 5c2*5c2
a,a,b = 2*2=4
a,a,a => 1. ie 6*6*6 ie 1 which got included in a a b
So a a b => 4-1=3
Unordered : (100-3*3-1)/6+3+1= 19
Oa: 675
27000 = 2^3*3^3*5^3
now for integral, a,a,b,, each of it can be (-a,-a,b) and (-a,-a,a) will be included in a,a,b only, so
there will be 2*8-1 = 15 a,a,b type and only 1 a,a,a, type
#Concept
●Number of perfect squares in 2^5*3^7 is
● Cubes = 3k form
PNC -6
■Reasoning behind last post.
a + b + c = 10
So a+1+b+1 + c = 10
By formula (10-3+1)C3=8c3
Generalisation : (n-r+1)Cr
Q 1) How many ways can you select 10 non consecutive bats out of 30 distinct bats arranged in
a row ?
OA: 21c10
2) In how many ways can you select 5 non consecutive books out of 20 distinct books arranged
in a circle ?
Oa:
16c5-14c3
3) How many ways can we select 4 things out of 20 distinct things in a row such that all are
consecutive ?
Oa : 17.
So 1234
2345
3456
.
.
17,18,19,20
Total 17 ways.
Or just 20-4+1=17 .
4) Number of ways of arranging 5 things out of 20 things in a row such that all are consecutive
?
Oa: 16*5!
So 16*5! Ways
Q) Number of ways of putting 5 caps on its pen such that no cap is put on its actual pen is ?
Oa: 44
Q) Number of ways of arranging 7 letters in their envelopes such that exactly 3 doesnt get into
its correct envelope is ?
solution : first select any 3 out of 7 in 7c3 ways, and their derangement D(3)=2,
so total 7c3*2
In Ring finger few gets doubt about r^n part. Reasoning here :
Q. 4 letters has 4 respective envelopes, how many ways can you go wrong if you arrange ?
OA:
There is only one correct way ie when all goes in correct envelope.
=> 4! -1 = 23
Q) How many ways can you select 10 bats such that there are atleast 2 bats in between out of
30 distinct bats arranged in a row ?
Non consecutive me we used to put a gap of one by keeping +1 in between variables means
there is atleast one in between.
a+2+b+2...+i+2+j = 30
a+b+c....=30-2*9=12
OA: 14C9
Q) On Kanika's birthday 5 handsome boys gifted her 10 distinct rings. In how many ways can
she arrange them in her 5 fingers such that there are atleast 1 ring in each finger?
Oa : 9c4*10!
Q; How many ways can you step up a 10 stair if you can use only 1 or 2 or 3 steps at a time ?
Oa: 274
PNC -6(MUTUAL EXCLUSION PRINCIPLE)
Q) In how many ways can you distribute 6 distinct balls into 3 distinct boxes such that no boxes
remain empty ?
Q) How many ways can 3 couples be seated around table such that none sit together ?
another is after we select 3 couples to sit together, we only have to arrange 3 items around the
circle in (3-1)! =2!
Q) How many ways can you arrange 7 balls into 3 boxes such that none is empty? (both
distinct)
OA:
3^7-3c1*2^7+3C2*1^7
Q) How many ways can you arrange 5 balls into 4 boxes such that none is empty? (both
distinct)
Oa:
4 ^ 5 -(4c1 * 3^5) + (4c2 * 2^5) - (4c3*1^5)
Q) How many ways can you arrange 6 distinct balls into 3 identical boxes such that none is
empty?
No 8c2 coz that case is when identical balls into distinct boxes.
Other way
411 : 6c4*2c1/2 = 15
3,2,1 : 6c3*3c2*2c1= 60
2,2,2 : 6c2*4c2*2c2/3! = 15
Q) How many ways can you arrange 7 distinct balls into 4 identical boxes such that none is
empty?
Oa:
(4^7-4c1*3^7+4c2*2^7-4c3*1^7)4!
Q) In how many ways can you distribute 6 distinct balls into 3 distinct boxes such that atleast
one boxe remain empty ?
Oa:
Atleast one box empty =
Q) In how many ways can you distribute 5 distinct balls into 3 distinct boxes such that atleast
one box remain empty ?
Oa:
3^5-(3^5-3c1*2^5+3c2)
= 3c1*2^5 - 3c2 = 93
PNC-7
#Basic Test
Number of integral solutions of x+y+z=10, such that all are greater than 2 is ?
so if you add 3 to all , ie., x+3 and get non negative integral solution then even if x= 0 you get 3
as minimum hence do same with all variable
(x+3)+(y+3)+(z+3) = 10
a+b+c+d+e=12
First digit here can't be 0, so make it (x+1) so that it's minimum possible value is atleast 1.
Now x varies from 0 to 8
(x+1)+b+c+d+e=12
x+b+c+d+e=11,
Total cases => (11+4)C4=15c4
But it includes cases when b,c,d,e is >9 and a>8 which needs to be removed
Hmmmmm. Wrong.
Problem is
As we do a + b + c + d = 20.
19c3 is total.
Which is wrong . Because whenever there are more than two variables > 6 possible we can't do
this way as there will be repitions .
So for such cases we replace each variable with (6-x) so that it's always less than 6.
x+y+z+w=4
=> 7c3
I correlated and derrived it for easy calculation and it works for any other x^n too.
So
we know that all digits less than or equal to 9 so give limits to all at a time to make it easy .
(9-a)+(9-b)+(9-c)+... (9-h)= 66
a+b+c....+h = 6
Hence the question is same as how many ways can you get sum = 11 on throwing for dice
So a+b+c+d=11
Oa:
first find for a+b+c+d=11, => +ve solution 10c3
Solution :
a + b + c + d = 15
(x+1) + b + c + d = 15
Great (y)
a+b+c+d=5
#Note : Point to remember is we can do directly only in case when only one variable > 6 is
possible .
If more than one possible then do (6-a)+(6-b) ... karke
● If it asks for number of scalene triangle with a given perimeter P, then subtract 6 and apply the
same formula . For even [(p-6)^2]/48 and for odd [(p-3)^2]/48.
For those who don't want to remember formula but conceptual way then read this article on I
Quanta : http://iquanta.in/triangles-and-perimeters/
PNC -8 (PRACTICE)
Q. Number of 4 digits numbers with sum of digits = 13 is ?
a + b + c + d = 13
(x+1) + b + c + d = 13
Oa:
(6-a) + (6-b) + (6-c) + (6-d) = 21
a+b+c+d=3
=> 6c3
a + b + c + d + e = 10
=> 9c4
So simply 9c4
Q. Number of ways to get a sum = 12 on throwing 4 dice is ?
a + b + c + d = 12
=> 11c3
(a +6) + b + c + d = 12
a+b+c+d=6
=> 5c3 , for all 4 variables
● Whenever the given sum is nearer to the total , we apply (6-x) + (6-y)+... way.. ..( coz in this
case more than one variable is greater than 6)
● Now in case of Dice to remove the variables > 6 we did (x+6) and not (x+7). Why ?
Coz we are finding natural solutions here . So the minimum possible value of x = 1 ,
And to get minimum out of range value it will be 1+6=7, so just (x+6)
=> if it was whole solution then (x+7) xoz then minimum value of x =0,
And to get minimum out of range value it will be 0+7=7, so just (x+7)
Q) how many integers between 1 and 10^6 have sum of digits equal to 18?
So a + b + c + d + e + f = 18
=> 23c3
Coz here question asked is for all numbers between 1 and 10^6
So if by just not adding +1 to a we are covering all the smaller digit cases. (Y)
Q) how many integers between 1 and 9999 have sum of digits equal to 12 ?
15c3 - 4 * 5c3
Power of x : 0 to 5
So a + b + c + d = 4
Power of x : 0 to 6
(a+7) + b + c + d = 9
a+b+c+d=2
=> 5c3 , for all 4
Oa:
10c4
#NewConcept
Q) What is the sum of all the 3 digit numbers which can be made by using the digits 1 to 6 ?
Solution : see there is a basic funda , that whenever we are using formula, many remember it
just as n^(n-1)*sum*111....n times but that is only in case when number of digits n being used is
same as n digit number.
this formula is used taking each digit fixed then finding all other possible digits at each units or
tens or thousands digits like that.
so its a 3 digit number, keep first digit fixed, and remianing 2 digits can attain digits in 6*6 ways,
and sum of each digit bieng (1+2+3+4+5+6)=21,
and sum at each units, tens thousands digits,,, ie, (1+10+100+1000)..
though here its 3 digits so only upto (1+10+100)= 111
Q) Sum of all the 4 digit numbers formed by using digits 2,3,5,7,9 with repition is ?
26*5^3*1111
Q) Sum of all the 4 digit numbers formed by using digits 2,3,5,7,9,0 with repition is ?
total : keep first digit fixed, now left with 3 digits with each having 6 choices so 6*6*6 = 6^3
sum = 26, and multiply with (1111)
=> 6^3*26*1111
now we need to remove cases when first digit was 0, so when it was 0 it means we need to
remove cases of all 3 digit numbers as
0abc same as 3 digit number
so => 6*6(sum)*111 = 6^2*26*111
Q) Sum of all the 4 digit numbers formed by using digits 2,3,5,7,9,0 with repition is ?
total : keep first digit fixed, now left with 3 digits with each having 6 choices so 6*6*6 = 6^3
sum = 26, and multiply with (1111)
=> 6^3*26*1111
now we need to remove cases when first digit was 0, so when it was 0 it means we need to
remove cases of all 3 digit numbers as
0abc same as 3 digit number
so => 6*6(sum)*111 = 6^2*26*111
Q) How many 5 digit numbers can be made from digits 2,3,6,7,8,9 without repeatition.
Oa : 6! :p