How would one go about proving this rule using modular arithmetic and can it be done using Euclidean algorithm?
The question is this but I am unsure which route to take: The number $123$ in $\mathbb{Z}$ has the property that $123 = 6 \mod{9}$, and $1 + 2 + 3 = 6 \mod {9}$. Prove that an integer is divisible by $9$ if and only if the sum of its digits is divisible by $9$.
Any help would be appreciated as my lecturer won't post any solutions.