Let $b = a_5a_4a_3a_2a_1a_0$ integer that has a maximum of six digits.
Here we have: if $b$ is a five-digit number, then $a_5 = 0$; if $b$ is a four-digit number , then $a_5$, $a_4 = 0$, and so on. Prove that
- $$ b \equiv a_0 - a_3 + 3 (a_1 - a_4) + 2 (a_2 - a_5) \pmod 7 $$
- $$ 10^6 \equiv 1 \pmod 7$$
From this derive the criterion of divisibility of an integer number $7$.
Can anyone help me with this?
I know that to determine if a number is divisible by $7$, take the last digit off the number, double it and subtract the doubled number from the remaining number. If the result is evenly divisible by $7$ (e.g. $14, 7, 0, -7$, etc.), then the number is divisible by seven.
Rewrite $b$ as
$$a_0 + 10^1a_1 + 10^2 a_2+ \dots+ 10^5 a^5$$
If you worked out $10^0, 10^1, 10^2, \dots, 10^5 \pmod 7$ for $a_0,a_1,\dots,a_5$ respectively, you'll get exactly the required coefficients.
The $10^6 \equiv 1 \pmod 7$ is there to indicate that the coefficients will repeat after every $6$ terms.