I want to know the method through which I can determine the answers of questions like above mentioned one.
PS : The numbers are just for example. There may be the same question for BIG numbers.
Thnx.
I want to know the method through which I can determine the answers of questions like above mentioned one.
PS : The numbers are just for example. There may be the same question for BIG numbers.
Thnx.
On
We know that
$x^2-y^2 = (x-y)(x+y) $ and $x^3 + y^3 = (x + y)(x^2 - xy + y^2) $
So,
$5^6 - 3^6 = (5^3)^2 - (3^3)^2 = (5^3 + 3^3) (5^3 - 3^3) $
so, $5^6 - 3^6 = (5 + 3) (5^2 - 3\centerdot 5 - 3^2) (5^3 - 3^3) $
Now, as reminder of $(x\centerdot y $ mod $ y )$ is $0$, dividing above term (with $(5+3)$ as one of the factors) with $2^3(=8)$ will give $0$ reminder.
On
HINT:
$$(2n+1)^2=4n^2+4n+1=8\frac{n(n+1)}2+1\equiv1\pmod{2^3}$$
Set $\displaystyle2n+1=5^3,3^3$ one by one
One may notice that if $c |(a' - a)$ and $c | (b' - b)$ then $ a \cdot b \mod c = a' \cdot b' \mod c$, same with + and - where $x \mod c$ is reminder (from 0 to $c-1$) (Why?)
So, $3^6 \mod 8 = (-5)^6 \mod 8 = 5^6 \mod 8$