Let p be a prime and n be a positive integer such that
2p2−3p−1=n3.(1)
Since
n3=2p2−3p−1<2p2≤p3,
it follows that n<p, so n+1≤p.
Consider the case p=n+1. We then get by (1) that
n3−2n2−n+2=0
which implies
(n−2)(n−1)(n+1)=0,∴n=1,2.
Thus p=2,3.
Consider the case p>n+1. By (1) we get
p(2p−3)=n3+1=(n+1)(n2−n+1).(2)
But p>n+1 and p is a prime, hence p∣n2−n+1. Thus there is an integer k such that
n2−n+1=kp.(3)
Setting (3) into (2) we then get 2p=k(n+1)+3 which implies in particular that k is odd.
Setting p=2k(n+1)+3 into (3) we have
2n2−(k2+2)n−(k2+3k−2)=0.(4)
By (4) and that n is a positive integer, we have that
(−k2+2)2−4(2)(−k2+3k−2)=k4+12k2+24k−12
is a square.
If k≥9 then we have
(k2+6)2<k4+12k2+24k−12<(k2+7)2
which implies that k4+12k2+24k−12 cannot be a square, contradicting the above. Thus 1≤k≤8. Now 1≤k≤8 is an odd integer, hence k∈{1,3,5,7}. It is directly to check that these numbers cannot make n to fulfil the condition of the problem. So there are no p>n+1.
We conclude that p=2,3 are the only primes making 2p2−3p−1 a cubic. □