n−digit number is a positive number with exactly n digits. Nine hundred distinct n−digit numbers are to be formed using only the three digits 2,5 and 7. The smallest value of n for which this is possible, is
A
6
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
7
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
9
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B7
Consider how many digits you have to choose at each spot: for the one's spot, you have 3 digits; for the tens spot, you have three digits; all the way to the nth spot, you have 3 digits to choose from. As such, the total number of ways to make an n-digit number with only 2,5 and 7 is going to be 3n.
Thus we're looking for the smallest integer n such that 3n≥900,
or in other words, since the log function is increasing, nln(3)≥ln(900)