Question
Question: The number of ways of selecting two numbers from the set \[\left\\{ {1,2,....30} \right\\}\] so that...
The number of ways of selecting two numbers from the set \left\\{ {1,2,....30} \right\\} so that their sum is divisible by 3, is
A. 95
B. 145
C. 190
D. 435
Solution
We divide the 30 numbers in three types of numbers using the divisibility by 3. Then calculate the number of ways of selecting two numbers from all 30 by taking two cases one by one. First choose both numbers from the set where all numbers are divisible by 3, then the second case where one number from one set and another is from the second set. Use the method of combinations to calculate the number of ways of selecting two numbers.
- Combination formula is given bynCr=(n−r)!r!n!, where n is total number of items w are choosing from and r is number of items we are selecting.
- Factorial terms open up as n!=n(n−1)!
Complete answer:
We are given the set of numbers \left\\{ {1,2,....30} \right\\}
We divide the numbers from the set into three forms i.e. 3k,3k+1,3k+2, where k is any positive integer.
Each number in the set falls in one of the categories.
We write numbers falling in each category separately.
3k:3,6,9,12,15,18,21,24,27,30
3k+1:1,4,7,10,13,16,19,22,25,28
3k+2:2,5,8,11,14,17,20,23,26,29
There are 10 numbers falling in each category.
Now we make cases for selecting numbers from categories.
Case1: Choosing both the numbers from 3k category
If we take both the numbers from 3k category then their sum will be divisible by 3 as 3k1+3k2=3(k1+k2)
So we found a number of ways to select both numbers from category 3k.
Here n is 10 and r is 2
⇒Number of ways of selecting two numbers =10C2
Use the combinations method to find the value
⇒Number of ways of selecting two numbers =(10−2)!2!10!
⇒Number of ways of selecting two numbers =8!2!10!
Open the term in numerator using factorial method
⇒Number of ways of selecting two numbers =8!2!10×9×8!
Cancel same terms from numerator and denominator
⇒Number of ways of selecting two numbers =45 … (1)
Case2: Choosing one number from 3k+1 and another from 3k+2
If we one number from 3k+1and another from3k+2, then their sum will be divisible by 3 as
3k1+1+3k2+2=3k1+3k2+3=3(k1+k2+1)
So we find number of ways to select one number from 3k+1and another from 3k+2
Here n is 10 and r is 1 for each case
⇒Number of ways of selecting two numbers =10C1×10C1
Use the combinations method to find the value
⇒Number of ways of selecting two numbers =(10−1)!1!10!×(10−1)!1!10!
⇒Number of ways of selecting two numbers =9!1!10!×9!1!10!
Open the term in numerator using factorial method
⇒Number of ways of selecting two numbers =9!10×9!×9!10×9!
Cancel same terms from numerator and denominator
⇒Number of ways of selecting two numbers =100 … (2)
Total number of ways can be calculated by taking the sum from both the cases.
⇒Number of ways of selecting two numbers =45+100
⇒Number of ways of selecting two numbers =145
∴Correct option is B.
Note:
Many students try to solve this question by taking each and every case of two numbers which is very lengthy as there are 30 initial numbers and we have to take possibility for each pair and then check if it is divisible by 3 or not. Kindly use the approach of combination for such questions.