how to find remainder when $20! + 20^{23}$ is divided by $23$?
I am finding it bit difficult to solve. Does any one has a simpler way to solve this problem??
how to find remainder when $20! + 20^{23}$ is divided by $23$?
I am finding it bit difficult to solve. Does any one has a simpler way to solve this problem??
Note that $$a^p\equiv a\mod p$$ for any prime $p$, and any $a$.
Moreover, by Wilson's theorem, $$(p-1)! \equiv -1\mod p$$ for any prime $p$.
Take $p=23$.
SPOILER