The problem is solve/simplify the following expression:
$2•2^\frac{202021^{202021} + 1}{2} \mod 202021$
I start by noticing that 202021 is prime. Then by Euler’s totient theorem:
$a^{\phi(n)} \cong 1 \mod n$
So, $2^{202020} \cong 1 \mod 202021$
However I’m unsure of where to go from here. I’d appreciate any help!