I am not able to figure out why the reminder of $8^{30} / 7$ is same as that of $1^{30} / 7$. I know Euclid division $a=bq+r$ but I don't know modular arithmetic, so please explain without referring to modular arithmetic.
Thanks in advance.
I am not able to figure out why the reminder of $8^{30} / 7$ is same as that of $1^{30} / 7$. I know Euclid division $a=bq+r$ but I don't know modular arithmetic, so please explain without referring to modular arithmetic.
Thanks in advance.
By the binomial theorem, we have $$8^{30}=(7+1)^{30}=\sum_{k=0}^{30}\binom{30}{k}7^{30-k}\cdot 1^k=7\left(\sum_{k=0}^{29}\binom{30}{k}7^{29-k}\right)+1^{30}$$
$a$ and $b$ leave the same remainders mod $m$ if and only if $m\mid a-b$.
In this case, use $a^n-b^n=(a-b)(a^{n-1}+a^{n-2}b+\cdots+b^{n-1})$ to see:
$$8^{30}-1^{30}=7\left(8^{29}+8^{28}\cdot 7+\cdots+7^{29}\right)$$
$7\mid 8^{30}-1^{30}$, therefore $8^{30}$ and $1^{30}$ leave the same remainders when divided by $7$.
So in general: $\,a\equiv b\,\pmod{\! m}\,\Rightarrow\, a^n\equiv b^n\,\pmod{\! m}$.
Your request is quite odd seeing that the remainder of a number divided by some other number is called $a \mod b$. First,
$$1^{30}=1$$
Second the powers of 8 divided by 7 all have remainder one. 1 divided by seven has a remainder of 1. 8 has a remainder of 1. Division is commutative so if the remainder of 8 divided by 7 is one then the remainder of $64=8 \cdot 8$ is $1 \cdot 1$ etc. by induction any power of 8 divided by 7 has a remainder of 1.
Two numbers $x$ and $y$ have the same remainder on division by $7$ if and only if we can write $$x = 7a + b\\y=7a'+b$$ where $0\le b<7$ and $a, a'\in\mathbb Z$. Equivalently, we must have $7\mid (x-y)$.
(Rephrased in the notation of modular arithmetic, the above is saying that if $x\equiv b \pmod 7$ and $y \equiv b \pmod 7$, then $x-y\equiv 0 \pmod 7$).
Using the factorisation $$x^n-y^n \equiv (x-y)(x^{n-1}+x^{n-2}y+x^{n-3}y^2+\cdots+xy^{n-2}+y^{n-1})$$ can you show that $8^{30}-1^{30}$ is divisible by $7$?
Another approach is, this: $ (a b)\;\mathrm{mod} \; p = \; ((a\; \mathrm{mod}\; p)(b\;\mathrm{mod}\;p) \;\mathrm{mod}\;p$. So in your example where $a = 8^{29}$ and $b = 8$. So you get $(8^{29} \;\mathrm{mod}\; 7)\;\mathrm{mod}\;7 = 8^{29} \;\mathrm{mod}\; 7$. This only works because $8 \;\mathrm{mod}\; 7 = 1$.