I'm asked to find the remainder of $305^{305}$ when it is divided by $42$.
My progress:
$305 \equiv 11 $ (mod 42) so $305^{305} -> 11^{305}$
$11^1 \equiv 11 $ (mod $42$)
$11^2 \equiv 121 \equiv 37$ (mod $42$)
$11^3 \equiv (11^2)(11) \equiv (37)(11) \equiv 29$ (mod $42$)
so this is where I'm having problems. It seems like I can't narrow my congruence to just $11^n \equiv 1$ (mod $42$) to state that $11^{nk} \equiv 1$ (mod $42$) where $k \in Z$ so I can easily substitute that into $11^{305} \equiv 11^{nk} + 11^j \equiv 1 + 11^j $ (mod $42$) where $j \in Z$, and complete the solution.
$305^{305}\equiv 11^{305}\equiv 121^{152}\times 11\equiv (-5)^{152}\times 11\equiv 625^{38}\times 11\\ \equiv (-5)^{38}\times 11\equiv 625^{9}\times 25\times 11\equiv(-5)^{9}\times 25\times 11\equiv(625)^{2}\times 25\times 25\times 11\\ -5\times -5 \times 11=23 \pmod {42}$