The number of n digit numbers which consists of the digits 1 & 2 only if each digit is to be used atleast once, is equal to 510 then n is equal to_____ .
A
7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
9
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
10
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is D9
Basically we have n blank spaces in which we have to put 1 and 2
∴ Total such occurance =2n
But we have to subtract the cases where there is no occurance of 1 and no occurance of 2