$d\mid10a-1$.
Proof that then $d\mid10q+r$ if and only if $d\mid q+ar$
My attempt was to go once in this direction: $$d\mid10a-1 \wedge d\mid10q+r\implies d\mid q+ar$$ and then with this: $$d\mid10a-1 \wedge d\mid q+ar\implies d\mid10q+r$$ but I only got that: $$d\mid10a-1 \wedge d\mid10q+r$$ then: $$d\mid \left( 10a-1 \right)\left(10q+r\right) + 10q+r$$ $$d\mid 100aq+10ar$$ $$d\mid 100aq+10ar - 9a\left(10q+r\right)$$ $$d\mid 10aq+ar$$ It is somehow "close".