Find all positive integers n such that 3x^2-y^2=2018^n has an integer solution

  • #1
littlemathquark
35
9
Homework Statement
Find all positive integers ##n## such that ##3x^2-y^2=2018^n## has integer solutions.
Relevant Equations
None
I need an idea. Thank you.
 
Physics news on Phys.org
  • #2
If ##n## is even consider the equation modulo ##3.##

The hard part is to show that odd ##n## actually do have solutions.
 
  • #3
##3x^2-y^2\equiv 2018^n\mod 3## $$-y^2\equiv 2^n\equiv 1\mod 3$$ $$y^2\equiv 2\mod 3$$ but it is impossible so ##n## must be odd.
 
  • #4
littlemathquark said:
##3x^2-y^2\equiv 2018^n\mod 3## $$y^2\equiv 2^n\equiv 1\mod 3$$
This is wrong. Use the assumption that ##n## is even.

(For odd ##n## show that ##3x^2-x^2\equiv 2018^n## has always a solution if ##3x^2-x^2\equiv 2018## has a solution. So you will be left with the case ##n=1.##)
 
  • #5
I mean if n is even ##y^2\equiv 2\mod3## but it is impossible so n must be odd.
 
  • #6
littlemathquark said:
I mean if n is even ##y^2\equiv 2\mod3## but it is impossible so n must be odd.
Right.

Now show that if ##3a^2-b^2=2018## then there will be a solution for all ##3y^2-x^2=2018^n## if ##n## is odd.
 
  • #7
$$3x^2=y^2+2018\implies x^2\geq \frac{2018}{3}\implies x\geq 26.$$ For ##x=27## , ##y=13## satisfy equation.
 
  • #8
littlemathquark said:
$$3x^2=y^2+2018\implies x^2\geq \frac{2018}{3}\implies x\geq 26.$$ For ##x=27## ##y=13##
That's not what I said. This will be the third and last step but first, make the second. What does it mean that ##n## is odd?
 
  • #9
If n is odd then ##n=2k+1##
 
  • #10
littlemathquark said:
If n is odd then ##n=2k+1##
Yes. Go ahead. How can you corstruct a solution for ##3x^2-y^2=2018^{2k+1}=2018\cdot (2018^{k})^2## if you have a solution ##3a^2-b^2=2018##?
 
  • #11
##3a^2.2018^{2k}-b^2.2018^{2k}=2018^{2k+1}##
 
  • #12
littlemathquark said:
##3a^2.2018^{2k}-b^2.2018^{2k}=2018^{2k+1}##
Yes. I would have written it as
$$
3x^2-y^2=2018^n=2018\cdot 2018^{2k}=
(3a^2-b^2)\cdot 2018^{2k}=3\cdot (a\cdot 2018^k)^2 - (b\cdot 2018^k)^2
$$
but yes.

So what is the answer to your initial question then?
 
  • #13
##3a^2.2018^{2k}-b^2.2018^{2k}=2018^{2k+1}## İf ##a=27## and ##b=13## then ##x=(27.2018^k)## and ##y=(13.2018^k)## are solutions. Thank you very much. But are these all solutions? Are there other solutions?
 
  • #14
littlemathquark said:
##3a^2.2018^{2k}-b^2.2018^{2k}=2018^{2k+1}## İf ##a=27## and ##b=13## then ##x=(27.2018^k)## and ##y=(13.2018^k)## are solutions. Thank you very much. But are these all solutions? Are there other solutions?
There are infinitely many solutions. With ##n,m\geq 0## these are (for ##2018##)
\begin{align*}
3x_n^2-y_n^2&=2018\\[6pt]
x_n &= \pm \dfrac{1}{6} \left(-81 (2 - \sqrt{3})^n + 13 \sqrt{3} (2 - \sqrt{3})^n - 81 (2 + \sqrt{3})^n - 13 \sqrt{3} (2 + \sqrt{3})^n\right)\\
y_n &= \pm \dfrac{1}{2} \left(-13 (2 - \sqrt{3})^n + 27 \sqrt{3} (2 - \sqrt{3})^n - 13 (2 + \sqrt{3})^n - 27 \sqrt{3} (2 + \sqrt{3})^n\right)\\[12pt]
3\hat x_m^2-\hat y_m^2&=2018\\[6pt]
\hat x_m &= \pm \dfrac{1}{6} \left(81 (2 - \sqrt{3})^m + 13 \sqrt{3} (2 - \sqrt{3})^m + 81 (2 + \sqrt{3})^m - 13 \sqrt{3} (2 + \sqrt{3})^m\right)\\
\hat y_m &= \pm \dfrac{1}{2} \left(13 (2 - \sqrt{3})^m + 27 \sqrt{3} (2 - \sqrt{3})^m + 13 (2 + \sqrt{3})^m - 27 \sqrt{3} (2 + \sqrt{3})^m\right)\\[12pt]
x_0&=\hat x_0=27\\
y_0&=\hat y_0=13\\[6pt]
x_1&=67\\
y_1&=107\\[6pt]
\hat x_1&=41\\
\hat y_1&=55\\[6pt]
\ldots \; etc.
\end{align*}
But I used Wolfram Alpha for it. I haven't found them myself. But your idea to find ##(27,13)## was nice. The solutions for higher odd powers of ##2018## are as described above:
$$
2018^{2k+1}=3(x_n\cdot 2018^k)^2-(y_n\cdot 2018^k)^2\, , \,2018^{2k+1}=3(\hat x_m\cdot 2018^k)^2-(\hat y_m\cdot 2018^k)^2
$$
 
Last edited:
  • Like
Likes littlemathquark
  • #15
The way we followed here was a typical one:

1.) Eliminate the impossible cases (##n=2k##) by a modulo consideration.
2.) Reduce the general case (##n=2k+1##) to the simple case (##n=1##).
3.) Solve the simple case (##(x,y)=(27,13)##).
 
  • Like
Likes littlemathquark
  • #16
I added the rest of the solutions and another two examples of low values in post #14 for completion.
 

FAQ: Find all positive integers n such that 3x^2-y^2=2018^n has an integer solution

What is the equation we are trying to solve?

The equation we are trying to solve is 3x² - y² = 2018^n, where we are looking for all positive integers n that allow for integer solutions (x, y).

What does it mean for an equation to have integer solutions?

For an equation to have integer solutions means that we can find values of x and y that are both whole numbers (positive, negative, or zero) that satisfy the equation.

What is the significance of the number 2018 in the equation?

The number 2018 serves as a specific constant in the equation, raised to the power of n. It acts as a target value that the left-hand side of the equation (3x² - y²) must equal for specific integer values of x and y.

How can we determine if there are integer solutions for specific values of n?

To determine if there are integer solutions for specific values of n, we can analyze the equation by substituting different values of n and testing if the resulting equation can yield integer pairs (x, y). This often involves number theory techniques, such as modular arithmetic or factorization.

Are there any known methods or theorems that can help solve this type of equation?

Yes, methods from number theory such as the theory of quadratic forms, Diophantine equations, and modular arithmetic can be useful in analyzing this type of equation. Additionally, tools like the Hasse principle or properties of Pell's equations may be applicable depending on the specific structure of the equation.

Similar threads

Back
Top