DR.WANG Mathematics中文

BMO2 · 2025/26 · 2026-01-21 · Question 1

Number theory · Prime numbers · greatest common divisor · Extremal problems

Problem outline

For a prime p>3p>3, count ordered positive integer pairs (m,n)(m,n) for which gcd⁡(m,n)+lcm⁡(m,n)=p4\gcd(m,n)+\operatorname{lcm}(m,n)=p^4. What is the smallest value this count can take?

Show answer and methods 1 methods

Answer

1818, attained at p=5p=5.

Method 1 Assign whole prime powers to coprime factors

Set m=du,n=dvm=du,n=dv with d=gcd⁡(m,n)d=\gcd(m,n) and gcd⁡(u,v)=1\gcd(u,v)=1. The equation is d(uv+1)=p4d(uv+1)=p^4. As uv+1≥2uv+1\ge2, it must equal pjp^j for some 1≤j≤41\le j\le4, and then d=p4−jd=p^{4-j}.

For each jj, each prime power in pj−1p^j-1 goes entirely to uu or entirely to vv. Writing ω(t)\omega(t) for the number of distinct prime factors, the contribution is 2ω(pj−1)2^{\omega(p^j-1)}.

For j=1j=1 there is at least the factor 2. For j=2j=2 there are 2 and 3, since p≡±1(mod3)p\equiv\pm1\pmod3. For j=3j=3, the even number p−1p-1 and the odd factor p2+p+1>1p^2+p+1>1 ensure at least two primes. For j=4j=4, p4−1=(p2−1)(p2+1)p^4-1=(p^2-1)(p^2+1). The first factor contributes 2 and 3. The second is 2 modulo 8 and greater than 2, so it has an odd prime factor. Since the two factors differ by 2, this odd prime is new.

The lower bound is 2+4+4+8=182+4+4+8=18. At p=5p=5 the four products uvuv are 4,24,124=4⋅31,624=16⋅3⋅134,24,124=4\cdot31,624=16\cdot3\cdot13. Their counts attain every bound.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)