divisibility by 7

No.13066324 ViewReplyOriginalReport

If n is divided into sets of three digits, prove that n is divisible by 7 if and only if an alternating series of sets of three digits is divisible by 7.
e.g. 123456789 = 123,456,789
For it to be divisible by 7,
123 - 456 + 789 has to be divisible by 7.

I think the fact that is the key to solving this, since you can create an alternating series with -1.


..
..
Then I don't know how to continue..
Can someone point me in the right direction?