I am currently helping a friend with their problem sheet. They have been given the question
Let $n\in\mathbb{N}$ have digits $a_r, \dots a_1,a_0$, so that
$$n=10^ra_r+\dots+10^2a_2+10a_1+a_0 = 10b+a_0$$
Prove that $\,7\mid n\,$ if and only if $\,7\mid 10^{r-1}a_r+\dots+a_1-2a_0 = b-2a_0$.
I have attempted this. First, I remarked that 10 is congruent to 3 mod 7, which gives us $(10)^s\equiv (3)^s\mod 7$, and hence $n\equiv a_0+3a_1+\dots+(3)^ra_r\mod 7$. So $7|n\iff n\equiv0\mod 7$.
However I'm unsure as to where to go from here. If I continue in the same manner I reach a result that is nothing like that which I am required to prove.
Could I have some elucidation as to which way I should go from here?
Hint: From $n$, subtract $21\cdot a_0$, and then divide the result by $10$.