Question
Question: The number of ways in which we can choose 2 distinct integers from 1 to 100 such that difference bet...
The number of ways in which we can choose 2 distinct integers from 1 to 100 such that difference between them is at most 10 is
A. 40C2
B. 70C2
C. 100C2−90C2
D. None of these
Solution
First, we will choose any number between 1 and 100 say x. We can choose any number between x+1 and x+10, which gives us 10 choices for each. But if we choose the number to be 91, then we will have nine numbers to choose, that is, 92 to 100 and so on. After calculating the required value, we will consider each option and find the values, using a formula to calculate combinations is nCr=r!∣⋅n−r!∣n!∣, where n is the number of items, and r represents the number of items being chosen.
Complete step by step answer:
We are given that the number of ways in which we can choose 2 distinct integers from 1 to 100 such that the difference between them is at most 10.
Let us choose any number between 1 and 100 say x.
You can choose any number between x+1 and x+10, which gives us 10 choices for each.
If we choose the number to be 91, then we will have nine numbers to choose from, that is, 92 to 100.
Similarly, if we choose the number 93, it gives us 8 choices.
So, number 94 gives us 7 and so on, until 99 gives us only 1 choice.
Thus, we will now find the number of ways in which we can choose 2 distinct integers.
⇒(90×10)+9+8+7+6+5+4+3+2+1 ⇒900+45 ⇒945We know that the formula to calculate combinations is nCr=r!∣⋅n−r!∣n!∣, where n is the number of items, and r represents the number of items being chosen.
Consider option A, substituting the values of n and r in the above formula of combinations, we get
⇒2!(40−2)!40! ⇒2!38!40×39×38! ⇒240×39 ⇒780Since the number 780 is not equal to 945, option A is incorrect.
Consider option B, substituting the values of n and r in the above formula of combinations, we get
⇒2!(70−2)!70! ⇒2!68!70×69×68! ⇒270×69 ⇒2415Since number 2415 is not equal to 945, option B is also incorrect.
Consider option C, substituting the values of n and r in the above formula of combinations, we get
⇒2!(100−2)!100!−2!(90−2)!90! ⇒2!98!100×99×98!−2!88!90×89×88! ⇒2100×99−290×89 ⇒4950−4005 ⇒945Since 945 is equal to 945, option C is correct.
Hence, option C is correct.
Note: The students can make an error while calculating the combinations for each option. Here, students must take care while simplifying the conditions given in the question into the combinations. Since the choices after 90 will keep on decreasing, we must add the choices separately.