Permutations And Combinations Question 221

Question: The number of natural numbers less than 7,000 which can be formed by using the digits 0, 1, 3, 7, 9 (repetition of digits allowed) is equal to

Solution:

Answer: 374