An $\displaystyle n$ digit number is a positive number with exactly $\displaystyle n$ digits. At least nine hundred $\displaystyle n-digit$ numbers are to be formed using only the three digits 2, 5 and 7. Find the smallest $\displaystyle n$ for which this is possible.