I am looking for a rational solution of the system $ p^2-2 q^2 + r^2 =12, 2p^2 - 3 q^2 + s^2=42$ for $p,q,r$ with $p\ne 0$.
Does it have any?
I am looking for a rational solution of the system $ p^2-2 q^2 + r^2 =12, 2p^2 - 3 q^2 + s^2=42$ for $p,q,r$ with $p\ne 0$.
Does it have any?
On
$$p^2-2q^2+r^2 = 12$$ $$2p^2-3q^2+s^2 = 42$$ From first equation, we get the solution $$p = 4(-5+k^2-k)/((k-1)(k+1))$$ $$q = -2(7+k^2+2k)/((k-1)(k+1))$$ $$r = -2(1+k^2+8k)/((k-1)(k+1)).$$
k is arbitrary.
Substitute $p,q,r$ to second equation, we get $$s^2 = 2(-85+210k^2+8k+11k^4+56k^3)/((k-1)^2(k+1)^2).$$
This quartic equation can be transformed to the elliptic curve $$Y^2=X^3 -2628X + 114048.$$
This elliptic curve has rank 2 with generator $P1(X,Y)=(-48,360), P2(X,Y)=(-6,360)$.
Thus, this elliptic curve has infinitely many rational points.
$P1: (p,q,r,s)=(\frac{5711}{182}, \frac{4619}{182},\frac{3233}{182},\frac{407}{182})$
$P1+P2: (p,q,r,s)=(\frac{1}{2}, \frac{11}{2},\frac{17}{2},\frac{23}{2})$
$2P1: (p,q,r,s)=(\frac{1006778053009}{14789940440}, \frac{918038410369}{14789940440},\frac{821347615729}{14789940440},\frac{714399503711}{14789940440})$
I found integer solutions to $$ p^2 - 2 q^2 + r^2 = 12 v^2 $$ $$ 2p^2 - 3 q^2 + s^2 = 42 w^2 $$ When $v=w$ this gives a rational solution to your original question.
.............................
Language is C++ with GMP, I use a number of commands that I defined elsewere, each a little program...