While fooling around with exponential towers I noticed something odd:
$$ 3^{3} \equiv 2\underline{7} \mod 100000 $$ $$ 3^{3^{3}} \equiv 849\underline{87} \mod 100000 $$ $$ 3^{3^{3^{3}}} \equiv 39\underline{387} \mod 100000 $$ $$ 3^{3^{3^{3^{3}}}} \equiv 5\underline{5387} \mod 100000 $$ $$ 3^{3^{3^{3^{3^{3}}}}} \equiv \underline{95387} \mod 100000 $$ $$ \dots$$
It seems that the last digits always converge to a fixed sequence! Is this really true and if yes - can someone think of a proof for this statement?
Any kind of help will be appreciated
This is more of an analysis, rather than a full-proof answer to your question.
In the representation of powers of $3$, each digit repeats periodically as a function of the exponent.
A few examples:
The period of the $1$st digit is $4$:
The period of the $2$nd digit is $20$:
The period of the $3$rd digit is $100$...
The period of the $4$th digit is $500$...
Let $Dm_n=\lfloor\frac{3^n}{10^m}\rfloor\bmod{10}$ denote the $m$th digit of $3^n$.
Let $P(m)=4\cdot5^m$ denote the period of the sequence $Dm$.
Note that I am using $m$ as a $0$-based index in the above notations.
The following congruences hold for every exponent in your sequence:
And in general, $\forall{m}\exists{k}:3^{3}\equiv3^{3^{3}}\equiv3^{3^{3^{3}}}\equiv\ldots\equiv{k}\pmod{P(m)}$.