Suppose I am dividing 4^30-2^50 by 5.
I do understand that 4^30 will get converted to 2^60
I could also find the series of remainders for 2^x. It comes out to be 2 4 3 1
By that, I could find (4^30) % 5 = 1 and (2^50) % 5 = 4. But how do I find the combined mod?
i.e. [(4^30)-(2^50)] % 5 = ? Thank you.
P.S. Please note that by %, I mean mod operator.