Prove the divisibility test by $7,11,13$ for numbers more than six digits
Attempt:
We know that $7\cdot 11 \cdot 13 = 1001$. The for a six-digit number, for example, $120544$, we write it as $$ 120544 = 120120 + 424 = 120\cdot1001 + 424 $$ thus we just check the divisibility of $424$ by $7,11,13$.
Know for a number with more than six digits, for example: $270060340$,
$$270060340 = 270270270 - 209930$$ $$ = 270 \cdot (1001001) - 209930 $$ $$ = 270 \cdot (1001000) + (270 - 209930) =270 \cdot (1001000) - 209660$$
so we check the divisibility of $209660 = 209209 + 451$, or just $451$.
But the test states that: for $270060340$, we group three digits from the right: $$ 270, 60, 340$$ then check divisibility of $340+270 - (60)$.
How to prove this?