To evaluate the expression:
333⋅⋅⋅(mod333)
where the height of the power tower is 333=327, we proceed by analyzing the modular arithmetic of this tower.
Step 1: Factor the Modulus
We begin by factoring the modulus:
333=32×37
This allows us to apply the Chinese Remainder Theorem (CRT) by computing the tower modulo 9 and modulo 37, then combining the results.
Step 2: Compute Modulo 9
We compute the tower modulo 9. Note that:
- 31=3mod9
- 3
So, for a tower of height ≥2, the result is 0mod9.
Since the tower has height 327≥2, we conclude:
tower≡0mod9
Step 3: Compute Modulo 37
We now compute the tower modulo 37. Since 3 and 37 are coprime, we can use Euler's Theorem:
3ϕ(37)≡1mod37
Since 37 is prime, ϕ(37)=36. Thus:
3k≡3kmod36mod
Let’s denote the tower as T=3T1, where T1 is the tower of height . To compute , we need to evaluate:
T≡3T1mod37
So we reduce T1mod36, and then compute 3.
Step 4: Reduce T1mod36
Let’s denote T1 as the tower of height 327−1. We compute by breaking into mod 4 and mod 9.
Modulo 4:
- 3≡−1mod4
- Any tower of 3s is odd, so:
T
Modulo 9:
- Any tower of 3s of height ≥2 is divisible by 9, so:
T1≡0
Now apply CRT to solve:
x≡3mod4x≡0mod9
Find x≡0mod9 and x≡3mod4:
- Numbers ≡0mod9: 0,9,18,27,36,…
- Check which of these :
So:
T1≡27mod36
Step 5: Compute T=3T1mod37
Now we compute:
T=327mod37
We use exponentiation by squaring or recognize that:
318≡1mod37
So the powers of 3 modulo 37 repeat every 18 steps. Then:
327=318+9=(3
Now compute 39mod37:
- 31=3
- 32=9
- 3
So:
327≡36mod37
Step 6: Combine Using CRT
We now have:
x≡0mod9x≡36mod37
We solve this system. Let x=37k+36. Then:
x≡0mod9⇒37k+36≡0mod
Since 37≡1mod9, this simplifies to:
k+36≡0mod9⇒k≡−36≡0
So k=9m, and:
x=37(9m)+36=333m+36
Thus:
x≡36mod333
Final Answer
36