The number of ordered pairs of integers ( x , y ) satisfying the equation x 2 + 6 x + y 2 = 4 is?
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.
Nice solution. Using symmetry, it takes only 10 second to solve it. ⌣ ¨
I did in this way :)
A very easy and quick method.
Rewrite the equation as:
x 2 + 6 x + ( y 2 − 4 ) = 0
Solving for x gives us:
x = 2 − 6 ± 3 6 − 4 ( y 2 − 4 ) = − 3 ± 1 3 − y 2
It can be seen that ∣ y ∣ < 4 (since we don't want any imaginary numbers). Also, y = 0 and y = ± 1 give non-integer solutions for x.
Hence the integer solutions are:
( − 6 , ± 2 ) , ( 0 , ± 2 ) , ( − 5 , ± 3 ) , ( − 1 , ± 3 )
For a circle with center at the origin, reflection of a point with integer coordinates about X and Y axis will give us three more points with integer coordinates. More over a point (h,k) reflected about y = x will give another point with integer coordinates (k,h).
Hence we need to inspect only 8 1 of a circle for such points. On such an arc from 0 to 45 degrees, all points will have x > y AND x would lie between 2 R and i n t ( R )
Here these two limits leave only one value of x viz. 3. So we just check that:
For the given circle with center (-3,0) check x = -3 + 3 = 0, which gives y = 2
Since we have just one point in the 8 1 arc, we will have 1 x 8 = 8 such points.
using namespace std;
int main() { int x,y,num;
for( x=-8 ; x<2 ; x++ )
for( y=-4 ; y<5 ; y++ )
{
num = (x+3)*(x+3) + y*y;
if( num==13 )
cout<<x<<" "<<y<<"\n";
}
return 0;
}
Output: no. of ordered pairs (x,y) that satisfies the equation
Problem Loading...
Note Loading...
Set Loading...
This equation can be written as ( x + 3 ) 2 + y 2 = 1 3 . The only two perfect squares that add to 1 3 are 4 and 9 , so we can have either
(i) x + 3 = ± 2 and y = ± 3 , or
(ii) x + 3 = ± 3 and y = ± 2 .
Each of these cases yield 2 ∗ 2 = 4 distinct ordered pairs, giving a final solution of 8 ordered pairs.
For completeness, the 8 ordered pairs ( x , y ) are
( − 5 , − 3 ) , ( − 5 , 3 ) , ( − 1 , − 3 ) , ( − 1 , 3 ) , ( − 6 , − 2 ) , ( − 6 , 2 ) , ( 0 , − 2 ) , ( 0 , 2 ) .