Solveeit Logo

Question

Question: On the occasion of Deepawali festival, each student of a class sends greeting cards to the other. If...

On the occasion of Deepawali festival, each student of a class sends greeting cards to the other. If a total of 306306 greeting cards are exchanged, then the number of students in the class is?

Explanation

Solution

We will first discuss the logic and plan with which we can count the number of greeting cards exchanged in the class with the help of the concepts of permutations and combinations. Then, we form a mathematical expression using the number of students in the class as a variable. Then, we expand the combination formula as nCr=n!r!(nr)!^n{C_r} = \dfrac{{n!}}{{r!\left( {n - r} \right)!}} and find the required answer.

Complete step by step solution:
We are given that each student of a class sends greeting cards to others and are provided the total number of cards exchanged as 306306.
We know that the greeting card is exchanged between any two students in class.
So, we just have to find the number of pairs in the class.
Let us assume the total number of students in a class is nn.
Then, we can find the number of pairs using the combination formula nC2^n{C_2}.
But, we also know that two greeting cards are exchanged between one pair of students. So, we multiply the number of pairs in the class by two to get the number of greeting cards exchanged.
So, we get,
2×nC2=306\Rightarrow 2{ \times ^n}{C_2} = 306
Dividing both sides by two, we get,
nC2=3062{ \Rightarrow ^n}{C_2} = \dfrac{{306}}{2}
nC2=153{ \Rightarrow ^n}{C_2} = 153
The simplified form of the mathematical expression nCr^n{C_r} is nCr=n!r!(nr)!^n{C_r} = \dfrac{{n!}}{{r!\left( {n - r} \right)!}} .
Here the term n!n! defines the notion of multiplication of first n natural numbers.
This means n!=1×2×3×....nn! = 1 \times 2 \times 3 \times ....n.
So, we have, nC2=n!2!(n2)!^n{C_2} = \dfrac{{n!}}{{2!\left( {n - 2} \right)!}}.
Hence, we get,
n!2!(n2)!=153\Rightarrow \dfrac{{n!}}{{2!\left( {n - 2} \right)!}} = 153
Cancelling out the (n2)!\left( {n - 2} \right)! common in both numerator and denominator and putting the value of 2!2!, we get,
n×(n1)×(n2)!2(n2)!=153\Rightarrow \dfrac{{n \times \left( {n - 1} \right) \times \left( {n - 2} \right)!}}{{2\left( {n - 2} \right)!}} = 153
n×(n1)2=153\Rightarrow \dfrac{{n \times \left( {n - 1} \right)}}{2} = 153
n2n=306\Rightarrow {n^2} - n = 306
n2n306=0\Rightarrow {n^2} - n - 306 = 0
Now, we solve the given quadratic equation using the splitting the middle term. So, we get,
We split the middle term n - n into two terms 18n - 18n and 17n17n since the product of these terms, 306n2306{n^2} is equal to the product of the constant term and coefficient of n2{n^2} and sum of these terms gives us the original middle term, n - n.
n218n+17n306=0\Rightarrow {n^2} - 18n + 17n - 306 = 0
Taking the common term outside the bracket, we get,
n(n18)+17(n18)=0\Rightarrow n\left( {n - 18} \right) + 17\left( {n - 18} \right) = 0
(n+17)(n18)=0\Rightarrow \left( {n + 17} \right)\left( {n - 18} \right) = 0
Now, either (n+17)=0\left( {n + 17} \right) = 0 or (n18)=0\left( {n - 18} \right) = 0
So, we get, n=17n = - 17 or n=18n = 18
Since the number of students in a class cannot be negative. So, we get, n=18n = 18. Therefore, there are 1818 students in the class.

Note:
There are some constraints in the form of nCr=n!r!(nr)!^n{C_r} = \dfrac{{n!}}{{r!\left( {n - r} \right)!}} such as the value of r cannot be negative and greater than n. Also, we need to remember the fact that the notion of choosing r objects out of n objects is exactly equal to the notion of choosing (nr)(n-r) objects out of n objects. The mathematical expression is nC(nr)=n!r!(nr)!=nCr^n{C_{\left( {n - r} \right)}} = \dfrac{{n!}}{{r!\left( {n - r} \right)!}}{ = ^n}{C_r}.