3

Determine with a proof all prime numbers p such that p$^2$-p+1 is a cube of a prime number.
By trial and error method 19$^2$-19+1=7$^3$
Is it the only p?
How should I prove it?

1 Answers1

3
  • HINT It can be rewritten as $$p_{1}(p_{1}-1) = (p_{2}-1)(p_{2}^2+p_{2}+1) $$
    If you rewrite as: $ (p_{1}-1) = k(p_{2}-1),$ then everything reduces to a solution to the given equation:
    $$(k y - k + 1) k = y^2 + y + 1$$
    I myself, unfortunately, could not solve this equation, but if to believe WolframAlf, its integer solution $ (k = 3; y = 1), (k = 3; y = 7) $
amWhy
  • 210,739