Prove that if these equations : $$37a^2\equiv n\pmod {113}\tag 1$$ $$-113b^2\equiv n\pmod {37}\tag 2$$ $$37c^2\equiv 113\pmod {n}\tag 3$$ have integer solutions, then the equation $$37x^2-113y^2=n$$ has integer solutions.
2026-04-17 23:13:07.1776467587
Solve $37x^2-113y^2=n$
316 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMBER-THEORY
- Maximum number of guaranteed coins to get in a "30 coins in 3 boxes" puzzle
- Interesting number theoretical game
- Show that $(x,y,z)$ is a primitive Pythagorean triple then either $x$ or $y$ is divisible by $3$.
- About polynomial value being perfect power.
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Reciprocal-totient function, in term of the totient function?
- What is the smallest integer $N>2$, such that $x^5+y^5 = N$ has a rational solution?
- Integer from base 10 to base 2
- How do I show that any natural number of this expression is a natural linear combination?
- Counting the number of solutions of the congruence $x^k\equiv h$ (mod q)
Related Questions in DIOPHANTINE-EQUATIONS
- Can we find $n$ Pythagorean triples with a common leg for any $n$?
- Can we find integers $x$ and $y$ such that $f,g,h$ are strictely positive integers
- Count of possible money splits
- I'm having a problem interpreting and starting this problem with primes.
- Solution of $X^5=5 Y (Y+1)+1$ in integers.
- Solving for 4 variables using only 2 equations
- Algorithm for diophantine equation
- Find all pairs of integers (x,y) such that $x(x+1)(x^2+x+2)=2y^2$
- Sum Equals Product: A Diophantine Equation
- Diophantine equation for Multivariate Polynomial
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Disclaimer
This is not a complete answer to your question because it only works when $n$ is not divisible by $37$ or $113$. I think we should be able to go around this restriction without too much more work, but here is what I have so far.
Introduction
By a primitive integral binary quadratic form, I mean one whose coefficients are relatively prime.
The first thing I did was to find out the number of equivalence classes of primitive integral binary quadratic forms of discriminant $D = -4 \cdot 37 \cdot (-113) = 16724$. The reduction algorithm is not too complicated, but I used the online applet here because the discriminant is rather big. It says that there are two equivalence classes, with $x^2 + 128xy -85y^2$ and $5x^2 + 122xy - 92y^2$ serving as possible representatives.
It is important to note that the applet disregards non-primitive forms. This is relevant because $16724$ is not a fundamental discriminant. There are in fact two more equivalence classes of non-primitive forms with discriminant $16724$ --- basically primitive forms with discriminant $4181$ scaled by $2$. We will come back to this when we carry out the second part of our plan.
This means that for any given primitive integral binary quadratic form $AX^2 + BXY + CY^2$ of discriminant $16724$, we can find a matrix $M \in GL_{2}(\mathbb{Z})$ such that $$ M^{t} \begin{pmatrix} A & \frac{B}{2} \\ \frac{B}{2} & C \end{pmatrix} M = \begin{pmatrix} 1 & 64 \\ 64 & -85 \end{pmatrix} \ \ \text{or} \ \ \begin{pmatrix} 5 & 61 \\ 61 & -92 \end{pmatrix}. $$ We can also think of this as there being an integrally invertible change of variables $$ \begin{pmatrix} X \\ Y \end{pmatrix} = M \begin{pmatrix} x \\ y \end{pmatrix} $$ which will turn $AX^2 + BXY + CY^2$ into one of the two representative forms. In particular, the set of integers represented by a primitive form of discriminant $16724$ coincides with the corresponding set of one of the two representative forms.
So here is our plan to exploit the congruence conditions given in the question:
First part of the plan
By completing the squares, we can write $$ x^2 + 128xy -85y^2 = (x + 64y)^2 - (37 \cdot 113) y^2. $$ If $n$ is represented by that form, we know from reducing modulo $37$ or $113$ that $n$ is a square modulo both primes. We can do something similar for the other form to get $$ 5x^2 + 122xy - 92y^2 = \frac{1}{5} \left\{ (5x+61y)^2 - (37 \cdot 113)y^2 \right\}. $$ So if $n$ is represented by the second form, $5n$ must be a square modulo both $37$ and $113$. If we assume that $n$ is relatively prime to $37$ (respectively $113$), we can also conclude that $n$ is not a square modulo $37$ (respectively $113$).
To summarize, given an integer which is not divisible by both $37$ and $113$ we can immediately pick out one of the two forms which cannot possibly represent that integer.
Second part of the plan
If we can find integers $B$ and $C$ such that $nx^2 + Bxy + Cy^2$ is primitive (this is important) and has discriminant $16724$, then we have basically showed that $n$ is represented by one of the two forms listed by the applet. When can we find such $B$ and $C$? We need $$ B^2 - 4nC = 16724 = 2^2 \cdot 37 \cdot 113. $$ In other words, we need to solve the congruence equation $B^2 \equiv 2^2 \cdot 37 \cdot 113 \pmod{4n}$. This is equivalent to solving $B_0^2 \equiv 37 \cdot 113 \pmod{n}$.
If we assume that $n$ is not divisible by $113$, then the conditions stated in the question implies that the congruence equation is solvable. More specifically, the third equation implies that $(37 \cdot 113)c^2 \equiv 113^2 \pmod{n}$ has a solution in $c$. The only possible common factor between $c$ and $n$ is $113$, so by our assumption, $c$ is relatively prime to $n$. Therefore $$ (113 \cdot c^{-1})^2 \equiv 37 \cdot 113 \pmod{n} $$ gives us a solution of the congruence equation we need to construct a form of discriminant $16724$ which represents $n$.
How can be be sure that the form we constructed is primitive? If $n$ is even, what is there to prevent both $B$ and $C$ to be even as well? We will deal with this issue by showing that subject to congruence conditions given in the question, an even $n$ is never represented by any of the two non-primitive forms of discriminant $16724$.
We can carry out an analysis similiar to what we did above to show that if $\frac{n}{2}$ is represented by a form of discriminant $4181$, then we must be able to solve the congruence equation $$ B^2 \equiv 37 \cdot 113 \pmod{4 \cdot \frac{n}{2}}. $$ There is no hope if $n$ is divisible by $4$, because $37 \cdot 113$ is simply not a square modulo $8$. So the question now is whether the three congruence equations forces an even $n$ to be divisible by $4$.
Let us assume to the contrary, that there is an even $n$ which is not divisible by $4$. We will write $n = 2n_{0}$, where $2 \nmid n_{0}$. We can check that $$ \left( \frac{37a^2}{113} \right) = \left( \frac{-113b^2}{37} \right), $$ so $n$ is simultaneously a square or a non-square modulo $37$ and $113$. Therefore $$ \left( \frac{2n_{0}}{113} \right) = \left( \frac{2n_{0}}{113} \right) \implies \left( \frac{n_{0}}{113} \right) = - \left( \frac{n_{0}}{37} \right) \implies \left( \frac{113}{n_{0}} \right) = - \left( \frac{37}{n_{0}} \right) $$ by properties of the Jacobi symbol, with the last implication exploiting the fact that $n_{0}$ is odd. This contradicts the third congruence equation in the question.
I think this is the only section where I assume that $37 \nmid n_{0}$.
Putting everything together
We have seen that if $113 \nmid n$, then $n$ is primitively represented by one of the two forms. Now the question is which one. From the first part of the plan, we know that this depends on whether $n$ is a square modulo $113$. Since $37$ is not a square modulo $113$, the first equation in the question implies that $n$ is not a square modulo $113$. Therefore $n$ must be an integer represented by $5x^2 + 122xy - 92y^2$.
To finish things off, we just need to verify that $37x^2 - 113y^2$ is equivalent to $5x^2 + 122xy - 92y^2$. It suffices to check, that $1$ is represented by $x^2 + 128xy -85y^2$ but not by $37x^2 - 113y^2$.
Other comments
We cannot always separate classes of forms using only congruence conditions on the integers they represent, but this modest idea is the starting point of genus theory. Dirichlet's Lectures on Number Theory has a very down-to-earth introduction to this. If you prefer a more modern presentation in terms of abstract algebra, you may want to also look at Flath's Introduction to Number Theory.
The congruence conditions given in the question turn out to be sufficient to guarantee the existence of a form of discriminant $16724$ whose first coefficient is $n$. Suppose we do not have any of those congruence conditions, and we want to try to classify integers $n$ represented by $37x^2 - 113y^2$. It would be nice if we could say that there is a form of the same discriminant with $n$ as the first coefficient; as we have seen above, this immediately gives some necessary conditions that $n$ must satisfy.
There is a standard trick which does just this, assuming that $n$ is primitively represented. An integer $n$ is primitively represented by a form $ax^2 + bxy + cy^2$ if there are relatively prime integers $x_0$ and $y_0$ such that $ax_0^2 + bx_0 y_0 + cy_0^2 = n$. Since $x_{0}$ and $y_{0}$ are relatively prime, we can find integers $\alpha$ and $\beta$ such that $x_{0} \beta - y_{0} \alpha = 1$. Now we have $$ \begin{pmatrix} x_{0} & \alpha \\ y_{0} & \beta \end{pmatrix}^{t} \begin{pmatrix} a & \frac{b}{2} \\ \frac{b}{2} & c \end{pmatrix} \begin{pmatrix} x_{0} & \alpha \\ y_{0} & \beta \end{pmatrix} = \begin{pmatrix} n & \ast \\ \ast & \ast \end{pmatrix}. $$