What is the smallest positive integer n for which 5 ↑ ↑ n m o d 2 3 2 is at a fixed point?
2 , 2 2 , 2 2 2 , 2 2 2 2 , 2 2 2 2 2 , 2 2 2 2 2 2 , 2 2 2 2 2 2 2 , 2 2 2 2 2 2 2 2 , 2 2 2 2 2 2 2 2 2 , 2 2 2 2 2 2 2 2 2 2 are 2 ↑ ↑ n for n from 1 to 10.
n → ( 5 ↑ ↑ n ) m o d 2 3 2 is a function from n to another positive integer.
Proof by induction on n : Let n = 5 k s for s coprime to 5. By the Chinese remainder theorem, it is enough to prove that the sequence is eventually constant modulo 5 k and modulo s. The claim modulo 5 k is obvious -- the sequence is eventually zero. For s coprime to 5, since GCD(5,s)=1, the value of 5 x modulo s is determined by ( x m o d ϕ ( s ) ) . By induction, the sequence is eventually constant m o d ϕ ( s ) , so it is also eventually constant modulo s ∴ .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Thank you.
It was a fun problem, thanks for posting it.
Problem Loading...
Note Loading...
Set Loading...
The values 5 ↑ ↑ n are known as tetrations of 5 . For compactness, we will write t n to denote 5 ↑ ↑ n . Consider first the easier-to-compute sequence of residues t n m o d 2 8 . The first few values are t 1 m o d 2 8 = 5 , t 2 m o d 2 8 = 5 3 , t 3 m o d 2 8 = 1 1 7 . So far, the sequence is not constant, but something important happens between t 2 and t 3 : t 3 ≡ t 2 ( m o d 6 4 ) . ( 1 ) This matters because 6 4 is the multiplicative order of 5 modulo 2 8 (i.e., 6 4 is the smallest positive integer m that satisfies 5 m ≡ 1 ( m o d 2 8 ) ). By an elementary property of modular exponentiation, a ≡ b ( m o d 6 4 ) if and only if 5 a ≡ 5 b ( m o d 2 8 ) . Once we see (1), we know t 4 ≡ 5 t 3 ≡ 5 t 2 ≡ t 3 ( m o d 2 8 ) . Of course, this means t 4 ≡ t 3 ( m o d 6 4 ) as well, so when we continue the exponentiation, we get t 3 ≡ t 4 ≡ t 5 ≡ t 6 ≡ ⋯ ( m o d 2 8 ) . To summarize, the residues t n m o d 2 8 are constant for n ≥ 3 because t n + 1 ≡ t n ( m o d 6 4 ) , and 6 4 is the multiplicative order of 5 modulo 2 8 . The residues become constant starting at t 3 because t 3 is the first tetration for which a congruence like (1) holds. We can apply this reasoning to help us answer the question posed, but first, here is a useful fact about the multiplicative order of 5 modulo some power of 2 .
We have shown that t n + 1 ≡ t n ( m o d 2 8 ) ⟺ n ≥ 3 , and by the lemma, 2 8 is the multiplicative order of 5 modulo 2 1 0 . This means t n + 2 ≡ 5 t n + 1 ≡ 5 t n ≡ t n + 1 ( m o d 2 1 0 ) ⟺ n ≥ 3 . If we repeat this reasoning twelve times, we obtain t n + 1 3 ≡ t n + 1 2 ( m o d 2 3 2 ) ⟺ n ≥ 3 , or equivalently, t n + 1 ≡ t n ( m o d 2 3 2 ) ⟺ n ≥ 1 5 . Therefore, we have shown that smallest value n for which t n m o d 2 3 2 is constant is 1 5 . Furthermore, we can say in general that t n + 1 ≡ t n ( m o d 2 2 k ) ⟺ n ≥ k − 1 .