So you are solving , where each . Since for all n, all you have is . Since is either 0 or 5, you really have for some k, which can only be 0 or 9. So you either have all zeroes, no fives, or 9 fives, 1 zero. There is one solution for the first option, and solutions for the second option, so your answer is 11.