Answer
37
Work Step by Step
By Fermat's little theorem, we can obtain that
$23^{40} \equiv 1 (mod 41)$
Hence,
$23^{1002} = (23^{40})^{25} * 23^{2} \equiv 1 * 529 (mod 41) \equiv 37 (mod 41).$
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.