Finding a Square Sum

How many pairs of (not necessarily positive) integers ( x , y ) (x, y) are there such that x 2 = y 3 + 7 x^2 = y^3 + 7 ?


The answer is 0.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

9 solutions

Dhruv Baid
Dec 25, 2013

It is necessary to know that all perfect squares are congruent to 0 0 or 1 1 ( m o d 4 ) (mod 4) , i.e.

x 2 0 x^2 \cong 0 or 1 ( m o d 4 ) x Z 1 (mod 4) \forall x \in Z .

Now, we see that y y can be written as either one of: ( 4 n + 1 ) , ( 4 n + 2 ) , ( 4 n + 3 ) (4n + 1), (4n + 2), (4n + 3) or ( 4 n + 4 ) (4n + 4) for some n Z + n \in Z^{+} . Considering each case:

C a s e 1 : y = 4 n + 1 Case 1: y = 4n + 1 for some n Z n \in Z y 3 + 7 = ( 4 n + 1 ) 3 + 7 = 64 n 3 + 48 n 2 + 12 n + 8 = 4 ( 16 n 3 + 12 n 2 + 3 n + 2 ) y^3 + 7 = (4n + 1)^3 + 7 = 64n^3 + 48n^2 + 12n + 8 = 4(16n^3 + 12n^2 + 3n + 2) . This expression cannot be factored because of the Rational Root Theorem and hence cannot be a perfect square for any x Z x \in Z , since n n is an integer.

C a s e 2 : y = 4 n + 2 Case 2: y = 4n + 2 for some n Z n \in Z y 3 + 7 = ( 4 n + 2 ) 3 + 7 = 64 n 3 + 96 n 2 + 48 n + 11 3 ( m o d 4 ) y^3 + 7 = (4n + 2)^3 + 7 = 64n^3 + 96n^2 + 48n + 11 \cong 3 (mod 4) ; hence, this expression cannot be equal to x 2 x^2 for x Z x \in Z .

C a s e 3 : y = 4 n + 3 Case 3: y = 4n + 3 for some n Z n \in Z y 3 + 7 = ( 4 n + 3 ) 3 + 7 = 64 n 3 + 144 n 2 + 108 n + 34 2 ( m o d 4 ) y^3 + 7 = (4n + 3)^3 + 7 = 64n^3 + 144n^2 + 108n + 34 \cong 2 (mod 4) ; hence, this expression cannot be equal to x 2 x^2 for x Z x \in Z .

C a s e 24 : y = 4 n + 4 Case 24: y = 4n + 4 for some n Z n \in Z y 3 + 7 = ( 4 n + 4 ) 3 + 7 = 4 3 ( n + 1 ) 3 + 7 3 ( m o d 4 ) y^3 + 7 = (4n + 4)^3 + 7 = 4^3(n + 1)^3 + 7 \cong 3 (mod 4) ; hence, this expression also cannot be equal to x 2 x^2 for x Z x \in Z .

Hence, there are 0 \boxed {0} integer solutions ( x , y ) (x, y) such that x 2 = y 3 + 7 x^2 = y^3 + 7 .

I'm not really sure about whether not being able to be factored implies the expression cannot be a perfect square : take p ( x ) = x 3 5 x 3 p(x) = x^3 - 5x - 3 , albeit this cannot be factored p ( 3 ) = 9 = 3 2 p(3) = 9 = 3^2

Alessio Di Lorenzo - 7 years, 5 months ago

Log in to reply

Hmm... That's true. So how would I prove that a certain polynomial p ( x ) p(x) cannot be a perfect square for any x R x\in \mathbb{R} ? Thanks! :)

Dhruv Baid - 7 years, 5 months ago

Log in to reply

This could actually be VERY hard, see for example here

The "easy" way, that only works for some problems, is to show that the equation is impossible modulo some number (that by the Chinese Remainder theorem can be assumed to be a prime power). This is exactly what you tried to do, except that 4 4 does not seem to work in this case. This problem is actually harder than it seems. If y y is odd, you should make use of the factorization of y 3 + 8 y^3+8 .

Alexander Borisov - 7 years, 5 months ago

Tips: you don't really have to use 4 n + 4 4n+4 , just 4 n 4n is fine.

Samuraiwarm Tsunayoshi - 7 years, 5 months ago

Log in to reply

Another tip: you didn't really have to expand out your expressions, Case 2 for example: 4 n + 2 2 ( m o d 4 ) 4n+2 \equiv 2 \pmod {4} , so you could've just done 2 3 + 7 15 3 ( m o d 4 ) 2^3+7 \equiv 15 \equiv 3 \pmod{4}

Harrison Lian - 7 years, 5 months ago

Log in to reply

OK, will take note there. Thanks! :)

Dhruv Baid - 7 years, 5 months ago

Oh right... :) My bad!

Dhruv Baid - 7 years, 5 months ago

no just kidding

Isaac Thomas - 7 years, 4 months ago

It is better to check modulo 9 for both the terms

Ankit Akash - 7 years, 5 months ago

Log in to reply

This, unfortunately, does not work. We may have solutions if x x is 4 4 or 5 5 modulo 9 , 9, and y y is divisible by 3. 3.

Alexander Borisov - 7 years, 5 months ago

Well, my actual age is 15..... Can you explain me Rational Root Theorm?????

Anubhav Agarwal - 6 years, 4 months ago

9^2=(4^3) + 7

Isaac Thomas - 7 years, 4 months ago
Apoorva Shah
May 20, 2014

Working in the system Z [ 7 ] \mathbb{Z}[\sqrt{7}] , we can rewrite what we have as ( x 7 ) ( x + 7 ) = y 3 (x-\sqrt{7})(x+\sqrt{7})=y^3 . Since y 3 y^3 can be expressed as a number times its conjugate, y y must split into ( a + b 7 ) ( a b 7 ) (a+b\sqrt{7})(a-b\sqrt{7}) where a , b Z a,b\in\mathbb{Z} . So then y 3 = ( a + b 7 ) 3 ( a b 7 ) 3 y^3=(a+b\sqrt{7})^3(a-b\sqrt{7})^3 . So either ( a + b 7 ) 3 = ( x 7 ) (a+b\sqrt{7})^3=(x-\sqrt{7}) or ( a b 7 ) 3 = ( x 7 ) (a-b\sqrt{7})^3=(x-\sqrt{7}) . We can consider the two cases.

Case 1: ( a + b 7 ) 3 = ( x 7 ) (a+b\sqrt{7})^3=(x-\sqrt{7}) Then we have ( a 3 + 21 a b 2 ) + ( 3 a 2 b + 7 b 3 ) 7 = x 7 (a^3+21ab^2)+(3a^2b+7b^3)\sqrt{7}=x-\sqrt{7} . So that means 3 a 2 b + 7 b 3 = 1 3a^2b+7b^3=-1 , but there are no solutions ( a , b ) (a,b) which satisfy this because the absolute value of that quantity would be greater than 1.

Case 2: ( a + b 7 ) 3 = ( x + 7 ) (a+b\sqrt{7})^3=(x+\sqrt{7}) This is similar to the first case. We get ( a 3 + 21 a b 2 ) + ( 3 a 2 b + 7 b 3 ) 7 = x 7 (a^3+21ab^2)+(3a^2b+7b^3)\sqrt{7}=x-\sqrt{7} , so 3 a 2 b + 7 b 3 = 1 3a^2b+7b^3=1 and again, there are no solutions.

[Note: This solution uses several (unjustified) facts from field theory]

Victor Reis
May 20, 2014

Consider x 2 = y 3 + 7 ( m o d 4 ) x^2 = y^3 + 7 \pmod{4} .

Case 1: If y y is even, then x 2 3 ( m o d 4 ) x^2 \equiv 3 \pmod{4} , which is a contradiction since 3 is not a quadratic residue modulo 4. Hence, we have that y y is odd and x x is even.

Case 2: If y 3 ( m o d 4 ) . y \equiv 3 \pmod{4}. , then x 2 = y 3 + 7 2 ( m o d 4 ) , x^2 = y^3 + 7 \equiv 2 \pmod{4}, which is a contradiction.

Case 3: If y 1 ( m o d 4 ) y \equiv 1 \pmod{4} . Since x 2 + 1 = ( y + 2 ) ( y 2 2 y + 4 ) , x^2 + 1 = (y+2)(y^2 - 2y +4), it is convenient to look at the divisors of x 2 + 1. x^2 + 1. Suppose it has a prime factor of the form p = 4 k + 3. p = 4k +3. Then x 2 1 ( m o d p ) x^2 \equiv - 1 \pmod{p} , so x 4 k + 2 ( 1 ) 2 k + 1 = 1 ( m o d p ) x^{4k+2} \equiv (-1)^{2k+1} = - 1 \pmod{p} , contradicting Fermat's little theorem. So all of the prime divisors of x 2 + 1 x^2 + 1 are congruent to 1 mod 4. If y 1 ( m o d 4 ) y \equiv 1 \pmod{4} , then y + 2 3 ( m o d 4 ) y+2 \equiv 3 \pmod{4} , and must certainly have a prime factor congruent to 3 mod 4. (Indeed, or it would be 1 mod 4 otherwise.) But y + 2 x 2 + 1 y+2|x^2 + 1 , which contradicts the fact that x 2 + 1 x^2 + 1 has all prime factors 1 mod 4.

Hence, we have no solutions for y y , giving the answer 0 0 .

This is a standard question in Number Theory, which has several approaches to this problem, ranging from understanding quadratic residues to utilizing field theory.

Calvin Lin Staff - 7 years ago
Kee Wei Lee
May 20, 2014

Suppose on the contrary that there are integers solution, We will first look at y y being even. This will mean that that y 3 0 ( m o d 8 ) y^3 \equiv 0 \pmod{8} , y 3 + 7 7 ( m o d 8 ) y^3+7 \equiv 7 \pmod{8} , x 2 7 ( m o d 8 ) x^2 \equiv 7 \pmod{8} . This is not possible, as a 2 0 , 1 , 4 ( m o d 8 ) a^2 \equiv 0,1,4 \pmod{8} is the only possible quadratic residues. Hence a contradiction, therefore y y is not even.

Now for an odd y y , we consider x 2 + 1 = y 3 + 8 = ( y + 2 ) ( y 2 2 y + 4 ) x^2+1=y^3+8=(y+2)(y^2-2y+4) . Now, y 2 2 y + 4 = ( y 1 ) 2 + 3 y^2-2y+4=(y-1)^2+3 which is always positive. Since y y is odd, y 1 y-1 is even and hence ( y 1 ) 2 0 ( m o d 4 ) (y-1)^2 \equiv 0 \pmod{4} , so ( y 1 ) 2 + 3 3 ( m o d 4 ) (y-1)^2+3 \equiv 3 \pmod{4} So there must be a prime number, p p , that divides ( y 1 ) 2 + 3 (y-1)^2+3 with the property that p 3 ( m o d 4 ) p \equiv 3 \pmod{4} . So x 2 + 1 x^2+1 must divide p p also or x 2 + 1 0 ( m o d p ) x^2+1 \equiv 0 \pmod{p} x 2 1 ( m o d p ) x^2 \equiv -1 \pmod{p} . But then again this is not possible as p p is in the form p = 4 n + 3 p=4n+3 , which implies that ( 1 ) p 1 2 1 1 ( m o d p ) (-1)^{\frac{p-1}{2}} \equiv -1 \neq 1 \pmod{p} . This means that x 2 1 ( m o d p ) x^2 \equiv -1 \pmod{p} is not possible by Euler's Criterion on Quadratic Residues. Hence there can be no integer solutions.

Jp Delavin
May 20, 2014

x 2 = y 3 + 7 x^2 = y^3+7

x 2 + 1 = y 3 + 8 = ( y + 2 ) ( y 2 2 y + 4 ) x^2+1=y^3+8=(y+2)(y^2-2y+4)

It is pretty apparent that y > 2 y > -2 , or else x 2 x^2 would be negative.

If y y is even then,

x^2  \equiv 7 \equiv -1\pmod{4}

But, it is well-known that the remainder of a square can only be 0 0 or 1 1 . Hence, y y cannot be even. Thus, assume y y is odd. Since y y is odd, x x must be even.

Also, given the fact that y y is odd,

y 3 y ( m o d 4 ) y^3 \equiv y \pmod{4}

So, x 2 y 3 + 7 ( m o d 4 ) x^2 \equiv y^3+7 \pmod{4} is equivalent to

0 y 1 ( m o d 4 ) 0 \equiv y -1 \pmod{4}

Then, y + 2 3 ( m o d 4 ) y+2 \equiv 3 \pmod{4} .

Since y + 2 y+2 is positive, odd and congurent to 3 3 mod 4 4 , it must have a prime factor p p such that

p 3 ( m o d 4 ) p \equiv 3 \pmod{4} .

Since p y + 2 p|y+2 , and y + 2 x 2 + 1 y+2|x^2+1 ,

y 2 + 1 0 ( m o d p ) y^2+1 \equiv 0 \pmod{p}

Or,

y 2 1 ( m o d p ) y^2 \equiv -1 \pmod{p} ,

which is only solvable if p 1 ( m o d 4 ) p \equiv 1 \pmod{4} , which is not the case.

Thus, the given equation has no integral solutions.

Kevin Sun
May 20, 2014

Let (x,y) be a solution. Add one to both sides, obtaining ( x 2 + 1 ) = y 3 + 8 (x^2+1) = y^3+8 , or x 2 + 1 = ( y + 2 ) ( y 2 2 y + 4 ) x^2+1 = (y+2)(y^2-2y+4) . If y was even, x 2 7 ( m o d 8 ) x^2 \equiv7 \pmod 8 , but 7 is not a quadratic resiude mod 8. Thus y is odd. This implies that y 2 2 y + 4 y ( y 2 ) 3 ( m o d 4 ) y^2-2y+4 \equiv y(y-2) \equiv3 \pmod 4 . This gives a contradiction, because it is well known that all odd factors of k 2 + 1 k^2+1 are 1 mod 4. Thus there are 0 solutions to the equation.

x 2 = y 3 + 7 y 3 = x 2 7 x^2 = y^3 + 7 \to y^3 = x^2 - 7

y 3 = ( x + 7 ) ( x 7 ) y^3 = (x + \sqrt{7})(x - \sqrt{7})

Therefore ( x + 7 ) 2 = ( x 7 ) (x+\sqrt{7})^2 = (x - \sqrt{7}) or ( x 7 ) 2 = ( x + 7 ) (x-\sqrt{7})^2 = (x + \sqrt{7})

or either one of ( x + 7 ) (x + \sqrt{7}) and ( x 7 ) = 1 (x - \sqrt{7}) = 1

As x x is an integer, the above condition is impossible.

Considering the two equations in the first case,

i. x 2 ( 2 7 + 1 ) x + ( 7 7 ) = 0 x^2 - (2\sqrt{7} + 1)x + (7 - \sqrt{7}) = 0

ii. x 2 + ( 2 7 1 ) x + ( 7 + 7 ) = 0 x^2 + (2\sqrt{7} - 1)x + (7 + \sqrt{7}) = 0

None of these have integer solutions so there are 0 pairs of ( x , y ) (x,y) .

Hmmm interesting solution but can you provide a better explanation for why you continued in this manner?

Muhammad Shariq - 7 years, 4 months ago

Log in to reply

x + 7 x + \sqrt7 and x 7 x - \sqrt7 can't have a common factor so there were only those two cases to consider: that one is the square of the other or that one is a cube (in which case the other would be equal to 1). There's also one where x + 7 x + \sqrt7 or x 7 x - \sqrt7 = 0 and y =0 but that would be impossible as x is an integer.

  • a 2 b 2 = ( a + b ) ( a b ) a^2 - b^2 = (a+b)(a-b) ** the cases i and ii were checked by the quadratic formula

Sorry my solution isn't exactly rigorous but I chose to publish it be cause it worked and it was a lot simpler than the other one.

Nucky Korprasertsri - 7 years, 4 months ago

in line 3 note 32*2 =64 and no one of them equal square of ather !!!

saleh elsbahi - 7 years, 4 months ago
Joanne Tan
May 20, 2014

Negative numbers and zero cannot be a solution for y since x^2 becomes negative for y<-1 while y=-1,0 does not satisfy the equation. For positive numbers, it can be observed that the differences (Note: x^2-y^3=7) between squares (nearest the value of the cube) and cubes are significantly greater than 7, and this becomes more apparent in larger values of x and y.

x^2=y^3+7, x^2+1^2=y^3+2^3, Sum of two integer squares cannot be equal to sum of two integer cubes(only exception is combination of 0 and 1, 0^2+1^2=0^3+1^3) .Here already 2 cube is present in the rhs ,so that no possibility exist

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...