第 904 题:(2021 AMC 10a, 11)
For which of the following integers $b$ is the base-$b$ number $2021_b - 221_b$ not divisible by $3$?
$\textbf{(A)} ~3 \qquad\textbf{(B)} ~4\qquad\textbf{(C)} ~6\qquad\textbf{(D)} ~7\qquad\textbf{(E)} ~8$
- $2021_b-221_b=(2b^3+2b+1)-(2b^2+2b+1)=2b^3-2b^2=2b^2(b-1)$.
- This is divisible by $3$ when $3\mid b$ or $3\mid b-1$. It is not divisible by $3$ exactly when $b\equiv2\pmod3$.
- Among $3,4,6,7,8$ only $b=8$ has $b\equiv2\pmod 3$ (indeed $2\cdot64\cdot7=896$ is not a multiple of $3$).
- The answer is (E).
For how many integers $b$ with $4\le b\le20$ is the base-$b$ number $3031_b-131_b$ \emph{not} divisible by $5$?