Maths Olympiad Prep

Library / IMO 1J, Mock Exam 2 /1 of 2

IMO 1J, Mock Exam 2

Number theory Difficulty 8.2 Shortlist Prove it Taiwan

Determine all pairs (a,p)(a, p) of positive integers with pp prime such that pa+a4p^a + a^4 is a perfect square.

Solution

Let pa+a4=b2p^a + a^4 = b^2 for some positive integer bb. Then we have
pa=b2−a4=(b+a2)(b−a2). p^a = b^2 - a^4 = (b + a^2)(b - a^2).
Hence both b+a2b + a^2 and b−a2b - a^2 are powers of pp.
Let b−a2=pxb - a^2 = p^x for some integer xx. Then b+a2=pa−xb + a^2 = p^{a-x} and a−x>xa - x > x. Therefore we have
2a2=(b+a2)−(b−a2)=pa−x−px=px(pa−2x−1). 2a^2 = (b + a^2) - (b - a^2) = p^{a-x} - p^x = p^x(p^{a-2x} - 1).
We shall consider two cases according to whether p=2p = 2 or p≠2p \neq 2. We let vp(m)v_p(m) denote the pp-adic valuation of mm.

Case 1 (p=2p = 2): In this case,
a2=2x=1(2a−2x−1)=22v2(a)(2a−2x−1), a^2 = 2^{x=1}(2^{a-2x} - 1) = 2^{2v_2(a)}(2^{a-2x} - 1),
where the second equality comes from gcd(2,2a−2x−1)=1\text{gcd}(2, 2^{a-2x} - 1) = 1. So, 2a−2x−12^{a-2x} - 1 is a square.
If v2(a)>0v_2(a) > 0, the 2a−2x2^{a-2x} is also a square. So, 2a−2x−1=02^{a-2x} - 1 = 0 and a=0a = 0 which is a contradiction.
If v2(a)=0v_2(a) = 0, then x=1x = 1, and a2=2a−2−1a^2 = 2^{a-2} - 1. If a≥4a \ge 4, the right hand side is congruent to 3 modulo 4, thus cannot be a square. It is easy to see that a=1,2,3a = 1, 2, 3 do not satisfy this condition.
Therefore, we do not get any solutions in this case.

Case 2 (p≠2p \neq 2): In this case, we have 2vp(a)=x2v_p(a) = x. Let m=vp(a)m = v_p(a). Then we have a2=p2m⋅n2a^2 = p^{2m} \cdot n^2 for some integer n≥1n \ge 1. So, 2n2=pa−2x−1=ppm⋅n−4m−12n^2 = p^{a-2x} - 1 = p^{p^m \cdot n-4m} - 1.
We consider two subcases.

Subcase 2-1 (p≥5p \ge 5): By induction one can easily prove that pm≥5m>4mp^m \ge 5^m > 4m for all mm. Then we have
2n2+1=ppm⋅n−4m>ppm⋅n−pm≥55m⋅(n−1)≥5n−1 2n^2 + 1 = p^{p^m \cdot n - 4m} > p^{p^m \cdot n - p^m} \ge 5^{5^{m \cdot (n-1)}} \ge 5^{n-1}
But by induction, one can easily prove that 5n−1>2n2+15^{n-1} > 2n^2 + 1 for all n≥3n \ge 3. Therefore, we conclude that n=1n = 1 or 22. If n=1n = 1 or 22, then p=3p = 3, which is a contradiction. So there are no solutions in this subcase.

Subcase 2-2 (p=3p = 3): Then we have 2n2+1=33m⋅n−4m2n^2 + 1 = 3^{3m \cdot n - 4m}. If m≥2m \ge 2, one can easily prove by induction that 3m>4m3^m > 4m. Then we have
2n2+1=33m⋅n−4m>33m⋅(n−1)≥39(n−1) 2n^2 + 1 = 3^{3m \cdot n - 4m} > 3^{3m \cdot (n-1)} \ge 3^{9(n-1)}
By induction, one can easily prove that 39(n−1)>2n2+13^{9(n-1)} > 2n^2 + 1 for all n≥2n \ge 2. Therefore, we conclude that n=1n = 1. Then we have 2⋅12+1=33m−4m2 \cdot 1^2 + 1 = 3^{3m-4m} hence 3m−4m=13^m - 4m = 1. The only solution of this equation is m=2m = 2 in which case we have a=3m⋅n=32⋅1=9a = 3^m \cdot n = 3^2 \cdot 1 = 9.
If m≤1m \le 1, then there are two possible cases: m=0m = 0 or m=1m = 1.
If m=1m = 1, then we have 2n2+1=33n−42n^2 + 1 = 3^{3n-4}. By induction, can see that 33n−4>2n2+13^{3n-4} > 2n^2 + 1 for all n≥3n \ge 3. By checking n=1,2n = 1, 2, we only get n=2n = 2 as a solution, this gives a=3m⋅n=31⋅2=6a = 3^m \cdot n = 3^1 \cdot 2 = 6.
If m=0m = 0, then we have 2n2+1=3n2n^2 + 1 = 3^n. By induction, can see that 3n>2n2+13^n > 2n^2 + 1 for n≥3n \ge 3. Checking n=1,2n = 1, 2, we find the solution a=30⋅1=1a = 3^0 \cdot 1 = 1 and 30⋅2=23^0 \cdot 2 = 2. Therefore, (a,p)=(1,3),(2,3),(6,3),(9,3)(a, p) = (1, 3), (2, 3), (6, 3), (9, 3) are all possible solutions.

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: MathNet, licensed CC-BY-4.0. Statement translated into English from zh; metadata (topic, difficulty) added by this project.