What is the remainder when x^y is divided by z , where x = 32, y = (32)^(32) and z = 13?
Answers
Given
x = 32
y = 32^32
z = 13
We have to find the remainder when x^y is divided by z.
Means, we have to find the remainder when
We can see here that (13, 32) = 1.
Hence, according to Fermat's theorem,
Now we have to find the remainder when y = 32^32 is divided by 12.
But, since 12 = 4² - 4, we have to remember that,
Thus,
This implies,
Hence 32^32 leaves remainder 4 on division by 12.
Thus, we can indicate y = 32^32 as y = 12q + 4, where q is the quotient.
Since the remainder is 4, now we have to find the remainder when 32^4 is divided by 13.
Hence 32^4 leaves remainder 9 on division by 13.
32^32 is indicated as 12q + 4. Thus x^y = 32^32^32 becomes 32^(12q + 4).
Hence, x^y = 32^32^32 leaves remainder 9 on division by z = 13.