Can anyone tell my, why we have to mod $r$ ? Thank you so much.
Since $a^{m+r}=a^m$ then all operations with exponents are performed on $\mod r$.
Copyright © 2021 JogjaFile Inc.
Since $a^{m+r}=a^m$ then all operations with exponents are performed on $\mod r$.