Some Triples

How many natural numbers (written in base 10) of 5 digits chosen from the set {1,3,4,5,7} are divisible by 3?

×