What is the remainder when 23⋅45⋅67⋅89 is divided by 13?
Solution — click to reveal
The prime factorization of 23⋅45⋅67⋅89 is 247⋅37. We see that 26≡64≡−1(mod13), so 247≡26⋅7+5≡(26)7⋅25≡(−1)7⋅32≡−32≡7(mod13),and 37≡2187≡3(mod13), so 247⋅37≡7⋅3≡21≡8(mod13).