Let $a$ be a positive integer. If $S(a)$ is the sum of 3-digit part of $a$, then prove $a$ is divisible by 37, if and only if $S(a)$ is divisible by 37.
I mention a, is the sum of 3 digit parts of a. For example, $a=5987654321$, then $S(a)=5 + 987 + 654 + 321 =1967$. I think this is very similar to the divisibility by 3, like all the digits sum is divisible by 3 then the number is divisible by 3. I think it can use decimal representation and then prove like that. And use congruences to help proove it. Can someone help judge if this is right?