$N$ can be at most $10^{10}$ and $M$ can be at most $10^7$. How can I find the first three digits of $N^M$ ?
Is there an easy way to find this like the process of finding last digit ?
$N$ can be at most $10^{10}$ and $M$ can be at most $10^7$. How can I find the first three digits of $N^M$ ?
Is there an easy way to find this like the process of finding last digit ?