2023 AIME I Problems/Problem 15
Problem 15
Find the largest prime number
for which there exists a complex number
satisfying
- the real and imaginary parts of
are integers;
, and- there exists a triangle with side lengths
, the real part of
, and the imaginary part of
.
Answer: 349
Suppose
; notice that
, so by De Moivre’s theorem
and
. Now just try pairs
going down from
, writing down the value of
on the right; and eventually we arrive at
the first time
is prime. Therefore,
.