
The number of n digit numbers which consists of the digits 1 & 2 only if each digit is to be used at least once, is equal to 510 then n is equal to ______.
(a). 7
(b). 8
(c). 9
(d). 10
Answer
595.2k+ views
Hint: We will be using the concept of permutation and combination to solve the problem we will be using the multiplication principle to find the total possible number of cases.
Complete step-by-step solution -
Now, we have been given that a n-digit number which consists of digits 1 and 2 only if each digit is to be used at least once is 510.
Now, we will first find the total number n-digits possible with 1 and 2. For this we will use the multiplication principle in which we multiply all the cases for each digit. Here we have n digits so,
In any of the box we can have either 1 or 2, so we have 2 cases each box for all n boxes. Therefore, total n-digits number $={{2}^{n}}$ .
Now, we have also been given that 1 and 2 have to use at least once. So, we will subtract 2 cases when either all digits are 1 or all digits are 2, from total where all n digits are either 1 or 2.
Therefore, we have ${{2}^{n}}-2=510$
${{2}^{n}}=510+2$
${{2}^{n}}=512$ .
Now, we know that $512={{2}^{9}}$
${{2}^{n}}={{2}^{9}}$ .
On comparing powers we have n=9.
Hence the value of n is 9.
Note: To solve these types of questions we must know basic technique of permutation and combination like multiplication principle, addition principle to solve the problem quickly and easily.
Complete step-by-step solution -
Now, we have been given that a n-digit number which consists of digits 1 and 2 only if each digit is to be used at least once is 510.
Now, we will first find the total number n-digits possible with 1 and 2. For this we will use the multiplication principle in which we multiply all the cases for each digit. Here we have n digits so,
In any of the box we can have either 1 or 2, so we have 2 cases each box for all n boxes. Therefore, total n-digits number $={{2}^{n}}$ .
Now, we have also been given that 1 and 2 have to use at least once. So, we will subtract 2 cases when either all digits are 1 or all digits are 2, from total where all n digits are either 1 or 2.
Therefore, we have ${{2}^{n}}-2=510$
${{2}^{n}}=510+2$
${{2}^{n}}=512$ .
Now, we know that $512={{2}^{9}}$
${{2}^{n}}={{2}^{9}}$ .
On comparing powers we have n=9.
Hence the value of n is 9.
Note: To solve these types of questions we must know basic technique of permutation and combination like multiplication principle, addition principle to solve the problem quickly and easily.
Recently Updated Pages
Master Class 12 Business Studies: Engaging Questions & Answers for Success

Master Class 12 Economics: Engaging Questions & Answers for Success

Master Class 12 English: Engaging Questions & Answers for Success

Master Class 12 Maths: Engaging Questions & Answers for Success

Master Class 12 Social Science: Engaging Questions & Answers for Success

Master Class 12 Chemistry: Engaging Questions & Answers for Success

Trending doubts
What is meant by exothermic and endothermic reactions class 11 chemistry CBSE

Which animal has three hearts class 11 biology CBSE

10 examples of friction in our daily life

One Metric ton is equal to kg A 10000 B 1000 C 100 class 11 physics CBSE

1 Quintal is equal to a 110 kg b 10 kg c 100kg d 1000 class 11 physics CBSE

Difference Between Prokaryotic Cells and Eukaryotic Cells

