There are several questions asked (e.g. 1, 2 or 3) on the last digit of numbers like $7^{355}$ or $237^{222222212202237}$.
My question is, if there is any efficient method to calculate the n-th digit of these numbers. To get the n-th digit, one could evaluate $7^{355} \mod 10^{n}$, but this seems not appropriate for large numbers $n$.
Example:
Calculate the second last digit (in base 10) of $237^{222222212202237}$. We calculate $237^{222222212202237} \mod 10^{2}$ and receive 69, so the answer is "6". But how would one get e.g. the thirty-first last digit?