Problem 602: (2017 AMC 10b, 14)
An integer $N$ is selected at random in the range $1\leq N \leq 2020$. What is the probability that the remainder when $N^{16}$ is divided by $5$ is $1$?
$\textbf{(A)}\ \frac{1}{5}\qquad\textbf{(B)}\ \frac{2}{5}\qquad\textbf{(C)}\ \frac{3}{5}\qquad\textbf{(D)}\ \frac{4}{5}\qquad\textbf{(E)}\ 1$
- By Fermat's little theorem, $N^4\equiv1\pmod5$ when $5\nmid N$, so then $N^{16}\equiv1$. When $5\mid N$, $N^{16}\equiv0$.
- Since $5\mid2020$, the probability is $\frac45$.
- The answer is (D).
An integer $N$ is selected at random with $1\le N\le2100$. What is the probability that $N^3$ leaves remainder $1$ when divided by $7$?