DR.WANG Mathematics中文

2023 AIME I · Question 15

Algebra · complex number · prime · triangle inequality · factoring · number-theory · geometry

Problem outline

Find the greatest prime p<1000p<1000 expressible as ∣z∣2|z|^2 for a Gaussian integer zz such that p,Re⁡(z3),Im⁡(z3)p,\operatorname{Re}(z^3),\operatorname{Im}(z^3) are side lengths of a nondegenerate triangle.

Show answer and methods 1 methods

Answer

349

Method 1 Trap the slope between consecutive integers

For odd pp use conjugation and rotations through right angles to take component magnitudes a>b>0a>b>0 of opposite parity. These symmetries also allow both cube components to be positive. Let R,IR,I be the real and imaginary parts of (a+bi)3(a+bi)^3. We have R+I=(a−b)(p+4ab)>pR+I=(a-b)(p+4ab)>p and R−I=(a+b)(p−4ab)R-I=(a+b)(p-4ab). Since the sum and difference of ∣R∣,∣I∣|R|,|I| in magnitude are the larger and smaller of ∣R+I∣,∣R−I∣|R+I|,|R-I|, the triangle condition is exactly (a+b)∣p−4ab∣<p(a+b)|p-4ab|<p.

Write s=2−3s=2-\sqrt3 and t=2+3t=2+\sqrt3. Then p−4ab=(a−sb)(a−tb)p-4ab=(a-sb)(a-tb). If b<a≤3bb<a\le\sqrt3 b, the quadratic a2−4ab+b2a^2-4ab+b^2 decreases from −2b2-2b^2, so its magnitude exceeds p/(a+b)<a≤3bp/(a+b)<a\le\sqrt3 b. For a>3ba>\sqrt3 b, expansion gives (a+b)(a−sb)−p=(1−s)b(a−3b)>0(a+b)(a-sb)-p=(1-s)b(a-\sqrt3 b)>0. The triangle condition now implies ∣a−tb∣<1|a-tb|<1.

As a≤31a\le31, this bound gives b≤8b\le8. For each b=1,…,8b=1,\ldots,8 only the one of ⌊tb⌋,⌈tb⌉\lfloor tb\rfloor,\lceil tb\rceil opposite in parity to bb can work. In order these are a=4,7,12,15,18,23,26,29a=4,7,12,15,18,23,26,29, giving p=17,53,153,241,349,565,725,905p=17,53,153,241,349,565,725,905. The last three are divisible by five.

Trial division by primes through 1717 confirms that 349349 is prime. For z=18+5iz=18+5i, its cube is 4482+4735i4482+4735i and 4735−4482=253<349<4482+47354735-4482=253<349<4482+4735, proving attainability.

Source and attribution

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

Original question (external)