Maths Olympiad Prep

Track / Stage 8 / 13 of 180 #1713 of 1964

Problem 1713

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.0 Prove it

For each positive integer kk, denote by τ(k)\tau(k) the number of all positive divisors of kk, including 11 and kk. Let aa and bb be positive integers such that τ(τ(an))=τ(τ(bn))\tau(\tau(an)) = \tau(\tau(bn)) for all positive integers nn. Prove that a=ba=b.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Lemma 1: Given any non-zero integer aa, there exists a prime number pp and an integer mm such that p2m+ap^{2m} + a has a prime divisor qq such that vq(p2m+a)v_q(p^{2m} + a) is odd.

Proof:
- If aa is even and 3a3 \nmid a, take p=3p = 3 and mm sufficiently large so that 32m+a3^{2m} + a is not a perfect square. Since 332m+a3 \nmid 3^{2m} + a and 232m+a2 \nmid 3^{2m} + a, there exists a prime divisor q>3q > 3 of 32m+a3^{2m} + a such that vq(32m+a)v_q(3^{2m} + a) is odd.
- If aa is even and 3a3 \mid a, take a sufficiently large prime pp and sufficiently large mm such that p2m+ap^{2m} + a is not a perfect square. Since 2,3p2m+a2, 3 \nmid p^{2m} + a, it has a prime divisor q>3q > 3 for which vq(p2m+a)v_q(p^{2m} + a) is odd.
- If aa is odd and 3a3 \mid a, take p=2p = 2 and mm sufficiently large so that 22m+a2^{2m} + a is not a perfect square. Since 2,32, 3 are not divisors of 22m+a2^{2m} + a, it has a divisor q>3q > 3 so that vq(22m+a)v_q(2^{2m} + a) is odd.
- If aa is odd and a1(mod3)a \equiv 1 \pmod{3}, take p=2p = 2 and mm sufficiently large so that 22m+a2^{2m} + a is not a perfect square. Since 2,32, 3 are not divisors of 22m+a2^{2m} + a, it has a divisor qq with vq(22m+a)v_q(2^{2m} + a) odd.

Finally, consider the case when aa is odd and a1(mod3)a \equiv -1 \pmod{3}. Assume the lemma is false. For sufficiently large odd xx, 22x+a2^{2x} + a is not a perfect square. By our assumption, for all primes q>3q > 3, vq(22x+a)v_q(2^{2x} + a) is even. Thus, v3(22x+a)v_3(2^{2x} + a) is odd. Hence, 22x+a3\frac{2^{2x} + a}{3} is a perfect square and odd. So,
22x+a2=b2    22x+a=3b23(mod8)    a+14(mod8) \frac{2^{2x} + a}{2} = b^2 \implies 2^{2x} + a = 3b^2 \equiv 3 \pmod{8} \implies a + 1 \equiv 4 \pmod{8}
Which means v2(a+1)=2v_2(a + 1) = 2.

Now observe that, for large odd xx,
v2(32x1)=v2(x)+3=3 v_2(3^{2x} - 1) = v_2(x) + 3 = 3
But then,
v2(32x+a)=v2(32x1+a+1)=min{v2(32x1),v2(a+1)}=2 v_2(3^{2x} + a) = v_2(3^{2x} - 1 + a + 1) = \min\{v_2(3^{2x} - 1), v_2(a + 1)\} = 2
Since 32x+a3^{2x} + a is not a perfect square for large xx, 33 does not divide it and v2(32x+a)v_2(3^{2x} + a) is 2. Hence, 32x+a3^{2x} + a must have a divisor q>3q > 3 with vq(32x+a)v_q(3^{2x} + a) odd. This contradicts our assumption. \blacksquare

2. Lemma 2: Given any rNr \in \mathbb{N} and rr integers a1,a2,,ara_1, a_2, \dots, a_r such that at least one of them is non-zero, we can find distinct primes p1,p2,,prp_1, p_2, \dots, p_r and positive integers m1,m2,,mrm_1, m_2, \dots, m_r such that the number
(p12m1+a1)(p22m2+a2)(pr2mr+ar) (p_1^{2m_1} + a_1)(p_2^{2m_2} + a_2) \dots (p_r^{2m_r} + a_r)
has a prime divisor q>3q > 3 such that
vq((p12m1+a1)(p22m2+a2)(pr2mr+ar)) v_q((p_1^{2m_1} + a_1)(p_2^{2m_2} + a_2) \dots (p_r^{2m_r} + a_r))
is odd. In particular, the number is not a perfect square.

Proof:
We can cancel out all terms of the form (pk2mk+ak)(p_k^{2m_k} + a_k) where ak=0a_k = 0 since it contributes a perfect square. So, WLOG, assume all ai0a_i \ne 0. We will prove the claim by induction on rr.

The base case is basically the previous lemma. Now assume that the lemma is true for r=1,2,,k1r = 1, 2, \dots, k-1. Therefore, by induction hypothesis, there are k1k-1 primes q2,q3,,qkq_2, q_3, \dots, q_k and k1k-1 positive integers m2,m3,,mkm_2, m_3, \dots, m_k such that
Q=(q22m2+a2)(qk2mk+ak) Q = (q_2^{2m_2} + a_2) \dots (q_k^{2m_k} + a_k)
has a prime divisor q>3q > 3 such that vq(Q)v_q(Q) is odd.

Now by Dirichlet's theorem, there exists a sufficiently large prime pqp \ne q such that
p≢1(modq)andp≢1(modq) p \not\equiv 1 \pmod{q} \quad \text{and} \quad p \not\equiv -1 \pmod{q}
Since q>3q > 3, this can be found. Now, observe that for sufficiently large mm, qq can't divide both p2m+a1p^{2m} + a_1 and p2m+2+a1p^{2m+2} + a_1 since otherwise, qq will divide their difference, i.e., qp2m(p1)(p+1)q \mid p^{2m}(p-1)(p+1). This is a contradiction.

So, we can find pp and m1m_1 such that vq(p2m1+a1)=0v_q(p^{2m_1} + a_1) = 0.

So indeed,
vq((p2m+a1)(q22m2+a2)(pk2mk+ak)) v_q((p^{2m} + a_1)(q_2^{2m_2} + a_2) \dots (p_k^{2m_k} + a_k))
is odd. And the induction is complete. \blacksquare

3. Main Problem:
Assume that
a=p1g1p2g2prgr a = p_1^{g_1} p_2^{g_2} \dots p_r^{g_r}
and
b=p1h1p2h2prhr b = p_1^{h_1} p_2^{h_2} \dots p_r^{h_r}
Assume for the sake of contradiction that aba \ne b. Therefore, there is some ii for which gihig_i \ne h_i.

Take
n=p1x1p2x2prxr n = p_1^{x_1} p_2^{x_2} \dots p_r^{x_r}
where xi=qicigi1x_i = q_i^{c_i} - g_i - 1 where primes qiq_i and powers will be determined later. Then
τ(τ(an))=τ(q1c1q2c2qrcr)=(c1+1)(c2+1)(cr+1) \tau(\tau(an)) = \tau(q_1^{c_1} q_2^{c_2} \dots q_r^{c_r}) = (c_1 + 1)(c_2 + 1) \dots (c_r + 1)
So for all even cic_i, τ(τ(an))\tau(\tau(an)) is odd.

Now observe that,
τ(τ(bn))=τ((q1c1+h1g1)(q2c2+h2g2)(qrcr+hrgr)) \tau(\tau(bn)) = \tau((q_1^{c_1} + h_1 - g_1)(q_2^{c_2} + h_2 - g_2) \dots (q_r^{c_r} + h_r - g_r))

Since there exists at least one hkgk0h_k - g_k \ne 0, by the previous lemma, there exist distinct primes q1,q2,,qrq_1, q_2, \dots, q_r and even c1,c2,,crc_1, c_2, \dots, c_r such that (q1c1+h1g1)(q2c2+h2g2)(qrcr+hrgr)(q_1^{c_1} + h_1 - g_1)(q_2^{c_2} + h_2 - g_2) \dots (q_r^{c_r} + h_r - g_r) is not a perfect square. So for that particular nn,
τ(τ(bn))=τ((q1c1+h1g1)(q2c2+h2g2)(qrcr+hrgr))=even \tau(\tau(bn)) = \tau((q_1^{c_1} + h_1 - g_1)(q_2^{c_2} + h_2 - g_2) \dots (q_r^{c_r} + h_r - g_r)) = \text{even}

Hence, τ(τ(an))τ(τ(bn))\tau(\tau(an)) \ne \tau(\tau(bn)). This is a contradiction. \blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.