Given the prime numbers P and Q, the expressions 2p + 1q and 2q − 3P are natural numbers

Given the prime numbers P and Q, the expressions 2p + 1q and 2q − 3P are natural numbers


Let P ≥ Q, then 1 ≤ 2q − 3P = 2 × qp-3p < 2, then only 2q − 3P = 1, that is, P = 2q-3, then 2p + 1q = 4q − 5q = 4-5q, if 2p + 1q is a natural number, only q = 5, then p = 7, then P < Q, then 1 ≤ 2p + 1q = 2 × PQ + 1q < 3, then there are two cases: 2p + 1q = 1, q = 2p + 1



Given that P and Q are prime numbers and 2p + 3Q = 24, what is the QP cube


No solution
p=12-3q/2
P is positive, so Q must be even
Q can only be 0,2,4,6,8
P is 12,9,6,3,0
Obviously, there is no valid solution