The number of n digit numbers which consists of the digits 1 and 2 only if each digit is to be used atleast once is equal to 510 then n is equal to
An n-digit number is a positive number with exactly n digits. Atleast 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