Find all $7$-digit numbers which use only the digits $5$ and $7$ and are divisible by $35$.
Attempt
It is easy to see that all numbers of this form must be of the form _ _ _ _ _ _ 5. Working with the divisible by $35$ condition seems a little hard so since we immediately know it is divisible by $5$ we just have to work on divisibility by $7$. I would use the divisibility test then for the rest of the digits $\overline{abcdef}$. We must have that $\overline{abcdef}-10$ is divisible by $7$. This is equivalent to testing divisibility by $7$ for $100000a+10000b+1000c+100d+10e+f-10$. Taking this all mod $7$ we get $2a+4b+c+2d+3e+f \equiv 3 \mod 7.$ Now how do I find all such pairs $(a,b,c,d,e,f)$?