1

I want to find out the existence of the solutions in diophantine equations of the style:

$$-259y ^2+ 2400yx + 1817y + 2122x = $$ $$1057364602723981500371957207036553770637547302056514367123547565680640946707606178926389130616$$

The point is that solving it with current methods (elliptic curves) takes a long time, so I want to find out whether or not it has solutions.

What I have already tried:

  1. If the GCD of the coefficients does not divide the independent term, then it has no solutions. Even if I divided it, it may be that the equation has solutions or it may not have them

  2. Shaping the $x$ and the $y$: for example $x,y$ pairs and come to a contradiction (sometimes it works, sometimes it doesn't)

My questions are:

-Do you know of any procedure that allows deciding whether or not it has solutions given any second-degree diophantine equation with two unknowns?

-The equation above is of a hyperbolic type, is it possible to modify it to make it an elliptical type? If yes, how do I do it?

Integrand
  • 8,457
  • 1
    $n = 394354702231936140378725159936353094296979641774997598362398300096251847484068800492386090829229590001$
    $n$ is the product of the three primes, two primes are $50$ digits.
    I found these factors using the Msieve.
    $p1=259$
    $p2=37975227936943673922808872755445627854565536638199$
    $p3=40094690950920881030683735292761468389214899724061$
    – Tomita Jul 12 '20 at 08:04

2 Answers2

2

$$-259y ^2+ 2400yx + 1817y + 2122x = $$ $$1057364602723981500371957207036553770637547302056514367123547565680640946707606178926389130616$$

$$\implies \Bigl(1440000 x + 1364999\Bigr)^2-\Bigl(600(2400 x - 518 y + 1817)\Bigr)^2=$$

$$394354702231936140378725159936353094296979641774997598362398300096251847484068800492386090829229590001$$

For solving need factorize RHS.

Any quadratic diophantine equations with 2 unknowns can simplify to 3 type:

  1. Pell equation like $x^2-dy^2=\pm c$

  2. difference of squares like $x^2-y^2=c$

  3. "quadratic Thue" equation like $x^2+dy^2=c$

where $d,c\in\mathbb{N}$.

Dmitry Ezhov
  • 1,653
0

The general form of the "type" of the equation is (4) in

https://mathworld.wolfram.com/PellEquation.html

And there are algorithms to reduce the equation. The idea is to homogenize, thus getting an equation of the shape $$ q(x,y,z):= a_{11}x^2 +a_{22}y^2+a_{33}z^2+2a_{12}xy+2a_{23}yz+2a_{13}xz = 0\ . $$ See also https://encyclopediaofmath.org/wiki/Quadratic_form.

Solutions $[x:y:z]$ with $z\ne 0$ of $q=0$ (over $\Bbb Q$ or equivalently over $\Bbb Z$) correspond to solutions over $\Bbb Q$

The second question has a clear answer, the discriminant is an invariant of a ternary quadratic form and there is no linear transformation / no base change switching its sign. A "naive definition of type" is in this homogeneous version unclear, because after grouping squares in some linear combinations $X,Y,Z$ of $x,y,z$ we can write equivalently for $a,b,c>0$ $$ \begin{aligned} aX^2 + bY^2 &= cZ^2\ ,\\ aX^2 &= cZ^2-bY^2\ , \end{aligned} $$ and dehomogenizing w.r.t. $Z$ on the one side, w.r.t. $X$ on the other side, we get different "naive types".


Note that the given diophantine equation is not related to elliptic curves. (There the world is much complicated. There is no local-to-global (Hasse) principle holding. An elliptic curve may have solutions in all place / localizations, without having solutions over $\Bbb Q$. In this given quadratic case the Hasse principle is a theorem.)


To solve it, let us denote by $N$ the big number on the R.H.S. of the given equation, so we can write it in one line: $$ 259y^2 - 2400xy - 2122x - 1817y + N =0\ . $$ We multiply with $4\cdot 259$ and first group squares in all terms involving $y$, getting successively: $$ \begin{aligned} 0 &= 259y^2 - 2400xy - 2122x - 1817y + N \ ,\\ 0 &= 4\cdot259^2y^2 - 2\cdot 259\cdot 4800xy - 4\cdot 2122\cdot 259x - 4\cdot259\cdot 1817y + 1036N \ ,\\ 0 &= (518y - 2400x - 1817)^2 \\ &\qquad -5760000x^2 - 10919992x + 1036N - 1817^2 \ ,\\ 0 &= (518y - 2400x - 1817)^2 \\ &\qquad -\left(2400^2x^2 + 2\cdot \underbrace{\frac {10919992}{2\cdot 2400 }}_{:=s} \cdot 2400x +s^2\right) \\ &\qquad\qquad + s^2 + 1036N - 1817^2 \ ,\\ \end{aligned} $$ and because of $s=1364999/600$, we multiply with the denominator $600^2$ of $s^2$, thus getting: $$ \tag{$\dagger$} \\ 0= 600^2(518y - 2400x - 1817)^2 - (600\cdot 2400 x + 1817^2)^2 + \underbrace{ 1364999^2 +600^2( 1036N - 3301489)}_{:=M} \ . $$ The "(conceptually) simple problem" of solving a quadratic diofantine equation turns out to lead to the factorization of a "big number", $$ \tiny M= 394354702231936140378725159936353094296979641774997598362398300096251847484068800492386090829229590001\ , $$ so that we can match factors in the equivalent equation $(\dagger\dagger)$: $$ \tag{$\dagger\dagger$} \\ 259(1200y + 1061)(2880000x - 310800y + 2455199) =M\ . $$ And $M$ is indeed divisible by $259$, so let $M'=M/259$. $$ \tiny M' = 1522605027922533360535618378132637429718068114961380688657908494580122963258952897654000350692006139\ . $$ It turns out that we are here in a lucky situation. Writing $M'=(\pm1)\cdot(\pm M')$ and trying to match in all four cases the two factors to the factorization of the L.H.S. above leads to solutions in $\Bbb Q$, and one pairing leaves over $\Bbb Z$. So we do not need the factorization for the existence question. (Finding all solution would require the prime factors. This would be practically a more complicated question. Yes, here we could use elliptic curves.)

Optically we see that $M'+1061$ has last digits $00$, so this must be the chance we have. (All other pairings fail when taken modulo $100$.)

From here on, i will use sage to compute and type the steps, and find one solution of the initial problem over $\Bbb Z$.

sage: N = 1057364602723981500371957207036553770637547302056514367123547565680640946707606178926389130616
sage: var('x,y');
sage: def f(x,y): return -259*y^2 + 2400*y*x + 1817*y + 2122*x - N
sage: R.<X,Y> = PolynomialRing(ZZ)
sage: M = 1364999^2 + 600^2*( 1036*N - 3301489 )
sage: def g(x,y): return 600^2*(518*Y - 2400*X -1817)^2 - (600*2400*X + 1364999)^2 + M
sage: 4*259*600^2*f(X,Y) + g(X,Y)
0
sage: factor(g(X,Y) - M)
7 * 37 * (1200*Y + 1061) * (-2880000*X + 310800*Y - 2455199)

sage: MM = ZZ(M/259)
sage: MM
1522605027922533360535618378132637429718068114961380688657908494580122963258952897654000350692006139

sage: eq1 = 1200y + 1061 == -MM sage: eq2 = -2880000x + 310800*y - 2455199 == 1 sage: sol = solve([eq1, eq2], [x,y], solution_dict=True)[0] sage: sol {x: -136928716052755604298168458311233713297562375616318610542499409755643002598635000170967392649039, y: -1268837523268777800446348648443864524765056762467817240548257078816769136049127414711666958910006} sage: x0, y0 = sol[x], sol[y] sage: f(x0, y0) 0


The integer solution is explicitly: $$ \tiny \begin{aligned} x &= -136928716052755604298168458311233713297562375616318610542499409755643002598635000170967392649039 \ ,\\ y &= -1268837523268777800446348648443864524765056762467817240548257078816769136049127414711666958910006 \ . \end{aligned} $$


Later EDIT:

Let us verify the above condition:

x0, y0 = sol[x], sol[y]
print(f"x0 = {x0}")
print(f"y0 = {y0}")
print(f"f(x0, y0) is {f(x0, y0)}")

Result:

x0 = -136928716052755604298168458311233713297562375616318610542499409755643002598635000170967392649039
y0 = -1268837523268777800446348648443864524765056762467817240548257078816769136049127414711666958910006
f(x0, y0) is 0

So these values verify the given equation.

This verification is here, since there is a comment below claiming that the result of inserting the above solution in the LHS of the given equation is not the RHS, but an other one, one of the shape $10573\dots8340$. OK, let us check the last digit. Then for the above solution working modulo ten we have $$ -259y_0 ^2+ 2400y_0x_0 + 1817y_0 + 2122x_0 \equiv 1\cdot 4^2 + 0 + 7\cdot 4+2\cdot 1=6+8+2\equiv 6\ .$$ So the last digit is $6$, not zero. (Please check the own computation, it has to be done using a proper high precision calculator like pari/gp.)

$$

dan_fulea
  • 32,856
  • Thanks a lot @dan_fulea, so if I write M ′ = (± 1) ⋅ (± M ′) and I find integer solutions, does that mean that the original equation

    −259y^2 + 2400yx + 1817y + 2122x = N , has it always solutions?

    Or is it a case where 259* (1200y + 1061) *(2880000x − 310800y + 2455199) = M has solutions,

    −259y^2+2400yx+1817y+2122x= N,
    can't it have solutions? In which case do we guarantee that

    −259y^2+ 2400yx + 1817y + 2122x = N has no solutions?

    – Javier Álvarez Jul 15 '20 at 00:36
  • The two equations:$$259y^2 - 2400xy - 2122x - 1817y + N =0$$ and $$ (1200y + 1061)(2880000x - 310800y + 2455199) =M'$$ are equivalent. Here, for any $N$ the number $M'$ is $$M'=\frac 1{259}M=\frac 1{259}(1364999^2 +600^2( 1036N - 3301489))=\frac 1{259}(1364999^2-600^2\cdot 3301489)+4\cdot 600^2N\ .$$So the one has solutions in $\Bbb Z$, if and only if the other has. Now theoretically, we have a finite number of decompositions of $M'$ as product of two integers. For each we solve a system over rationals. If one of them is over $\Bbb Z$ we have existence, else not. But practically... – dan_fulea Jul 15 '20 at 01:18
  • ... practically, well we do not have the prime factor decomposition. (The question in the comment above was rather a question on the equivalence, if i correctly got the message.) – dan_fulea Jul 15 '20 at 01:20
  • Thanks again @dan_fulea. One thing, the equation begins with -259y^2, not 259y^2, Does development change much? – Javier Álvarez Jul 15 '20 at 01:27
  • Yes, sorry, the minus is missing from the first term, the message was written by copy+paste from the tex form of the answer, after the second comment i was not able to change the first one. What is "development" in the last comment? – dan_fulea Jul 15 '20 at 08:46
  • @ dan_fulea, I said development to refer the steps to deduce the second equation. One question more, the algorithm to transform −259y^2+2400yx+1817y+2122x= N into q(x,y,z):=a11x2+a22y2+a33z2+2a12xy+2a23yz+2a13xz=0, which is? Is useful to find out all solution from −259y^2+2400yx+1817y+2122x= N? – Javier Álvarez Jul 15 '20 at 13:33
  • Another question, I have substituted the values ​​of x and y that you have tried in the left term of the original equation and the result is 1057364602723981500371957207028884464501538147982352633140288456028284432017106108328459258340. – Javier Álvarez Jul 15 '20 at 17:29
  • It's different to 1057364602723981500371957207036553770637547302056514367123547565680640946707606178926389130616, which corresponds to the right term in the original equation. I dont find mistakes in your steps.Thanks – Javier Álvarez Jul 15 '20 at 17:30
  • can you see my questions,please? – Javier Álvarez Jul 29 '20 at 16:15
  • I saw this message now, took a look, and edited the answer by adding a verification. My computed solution is indeed verifiying the given equation. Please check your own result. (A high precision "calculator" is needed, for instance pari/gp, which is small, quick and effective in such situations). I also added a last digit check, the $6$ is obtained, at any rate not $0$ as claimed above. – dan_fulea Sep 18 '20 at 10:48