Maths Olympiad Prep

Library / HMMT February /1055 of 1302

HMMT February

Number theory Difficulty 5.6 AIME, harder Find the answer

For positive integers a,b,a↑↑ba, b, a \uparrow \uparrow b is defined as follows: a↑↑1=aa \uparrow \uparrow 1=a, and a↑↑b=aa↑↑(b−1)a \uparrow \uparrow b=a^{a \uparrow \uparrow(b-1)} if b>1b>1. Find the smallest positive integer nn for which there exists a positive integer aa such that a↑↑6≢a↑↑7a \uparrow \uparrow 6 \not \equiv a \uparrow \uparrow 7  mod n\bmod n.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

We see that the smallest such nn must be a prime power, because if two numbers are distinct mod nn, they must be distinct mod at least one of the prime powers that divide nn. For k≥2k \geq 2, if a↑↑ka \uparrow \uparrow k and a↑↑(k+1)a \uparrow \uparrow(k+1) are distinct  mod pr\bmod p^{r}, then a↑↑(k−1)a \uparrow \uparrow(k-1) and a↑↑ka \uparrow \uparrow k must be distinct  mod ϕ(pr)\bmod \phi\left(p^{r}\right). In fact they need to be distinct  mod ϕ(pr)2\bmod \frac{\phi\left(p^{r}\right)}{2} if p=2p=2 and r≥3r \geq 3 because then there are no primitive roots  mod pr\bmod p^{r}. Using this, for 1≤k≤51 \leq k \leq 5 we find the smallest prime pp such that there exists aa such that a↑↑ka \uparrow \uparrow k and a↑↑(k+1)a \uparrow \uparrow(k+1) are distinct  mod p\bmod p. The list is: 3,5,11,23,473,5,11,23,47. We can easily check that the next largest prime for k=5k=5 is 139 , and also any prime power other than 121 for which a↑↑5a \uparrow \uparrow 5 and a↑↑6a \uparrow \uparrow 6 are distinct is also larger than 139 . Now if a↑↑6a \uparrow \uparrow 6 and a↑↑7a \uparrow \uparrow 7 are distinct mod pp, then p−1p-1 must be a multiple of 47 or something that is either 121 or at least 139. It is easy to see that 283 is the smallest prime that satisfies this. If nn is a prime power less than 283 such that a↑↑6a \uparrow \uparrow 6 and a↑↑7a \uparrow \uparrow 7 are distinct  mod n\bmod n, then the prime can be at most 13 and clearly this doesn't work because ϕ(pr)=pr−1(p−1)\phi\left(p^{r}\right)=p^{r-1}(p-1). To show that 283 works, choose aa so that aa is a primitive root  mod 283,47,23,11,5\bmod 283,47,23,11,5 and 3 . This is possible by the Chinese Remainder theorem, and it is easy to see that this aa works by induction.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.