Problem:
Find the largest prime number p<1000 for which there exists a complex number z satisfying
the real and imaginary part of z are both integers;
β£zβ£=pβ, and
there exists a triangle whose three side lengths are p, the real part of z3, and the imaginary part of z3.
Solution:
Let's denote z=a+bi
After expanding z3, we'd have that
z3=(a+bi)3=a3β3ab2+(3a2bβb3)i
The only condition we are given is that a triangle exists with the real and imaginary parts of z3 and this prime p, so let's create inequalities using Triangle Inequality to start out and bound a and b
Since we have that β£zββ£=p, we have that β£zβ£=p2=a2+b2
So we can rearrange our original inequality to write
β£a3+b3β3ab2β3a2bβ£<a2+b2
From here, we have to use some sort of rational guess and check.
Notice we can factor a3+b3β3ab2β3a2b=(a+b)(a2+b2β4ab)
So we'd have that
β£a+bβ£β£a2+b2β4abβ£<a2+b2
We can assume WLOG that a>b, since i3(a+bi)=b+ai so we could transform to get a solution flipping a and b.
From here, let's also denote x=baβ.
Notice also that the root of x2β4x+1 is 2Β±3β which is important because that would be a root to a2+b2β4ab if we divided off by b2 and rewrote the equation in terms of x.
Let's consider bounding xβ₯4, particularly as it is close to 2+3β.