Find all integer solutions

How many ordered pairs of integers solutions ( x , y ) (x,y) are there to 2 x 2 + 3 x y + y 2 + 2 x + y + 18 = 0 ? 2x^2 + 3xy + y^2 + 2x + y + 18 = 0 ?


The answer is 12.

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.

6 solutions

Thaddeus Abiy
Aug 12, 2013

2 x 2 + 3 x y + y 2 + 2 x + y + 18 = 0 2x^2 + 3xy + y^2 + 2x + y + 18 = 0

Factorization the first few terms gives

( 2 x + y ) ( x + y ) + 2 x + y + 18 = 0 (2x+y)(x+y)+2x+y+18=0

( 2 x + y ) ( x + y ) + 2 x + y = 18 (2x+y)(x+y)+2x+y=-18

( 2 x + y ) ( x + y + 1 ) = 18 (2x+y)(x+y+1)=-18

Let m = 2 x + y m=2x+y and n = x + y + 1 n=x+y+1 .

m n = 18 mn = -18

From the above,it is obvious that the number of solutions are the number of pairs that when multiplied give -18.This is essentialy finding the number of divisors of 18 -18 .

Using the divisor function : from 3 2 . 2 3^{2}.2 we get ( 2 + 1 ) ( 1 + 1 ) = 6 (2+1)(1+1)=6 divisors of 18 18 . We multiply this result by two because we must also include negative divisors,thus 6.2 = 12 6.2=12 solutions.

Moderator note:

Nicely done! Please read the author's comment that completes the solution, without having to consider any cases.

Note: x x and y y are always integers because,for each pair of divisors we have the simultaneous equation:(where m m and n n are the divisors of 18 -18 ):

2 x + y = m 2x + y = m ...(1)

x + y + 1 = n x + y + 1 = n ...(2)

we can solve it through substitution:solving for y y in the first equation and substituting y y in the second equation gives us :

x = m n + 1 x = m - n + 1

y = m + 2 n 2 y=-m + 2n - 2

Both the equations show that x x and y y must be integers as long as m m and n n are integers.

Thaddeus Abiy - 7 years, 10 months ago

Log in to reply

Same thing here! Good one.

Vishwak Srinivasan - 6 years, 2 months ago
Danny He
Aug 11, 2013

2 x 2 + 3 x y + y 2 + 2 x + y + 18 = ( 2 x + y ) ( x + y + 1 ) + 18 2x^2+3xy+y^2+2x+y+18 = \left(2x+y\right)\left(x+y+1\right) +18

So ( 2 x + y ) ( x + y + 1 ) = 18 \left(2x+y\right)\left(x+y+1\right) = -18

Since { x , y } Z \left\{x,y\right\} \subset \mathbb{Z} we can say that ( 2 x + y , x + y + 1 ) { ( 18 , 1 ) , ( 9 , 2 ) , ( 6 , 3 ) , ( 3 , 6 ) , ( 2 , 9 ) , ( 1 , 18 ) , ( 1 , 18 ) , ( 2 , 9 ) , ( 3 , 6 ) , ( 6 , 3 ) , ( 9 , 2 ) , ( 18 , 1 ) } \left(2x+y,\: x+y+1\right) \in \left\{\left(-18,1 \right),\left(-9, 2 \right),\left(-6,3 \right),\left(-3,6 \right),\left(-2,9 \right),\left(-1,18 \right),\left(1,-18 \right),\left(2,9 \right),\left(3,-6 \right),\left(6,-3 \right),\left(9,-2 \right),\left(18,-1 \right)\right\}

Through simultaneous equations and checking every case, we get the solutions of x a n d y x \: and \: y

( 18 , 18 ) \left( -18,18 \right) ( 10 , 11 ) \left( -10, 11 \right) ( 8 , 10 ) \left( -8, 10 \right) ( 8 , 13 ) \left( -8, 13 \right) ( 10 , 18 ) \left( -10, 18 \right) ( 18 , 35 ) \left( -18, 35 \right) ( 20 , 39 ) \left( 20, -39 \right) ( 12 , 22 ) \left( 12, -22 \right) ( 10 , 17 ) \left( 10, -17 \right) ( 10 , 14 ) \left( 10, -14 \right) ( 12 , 15 ) \left( 12, -15 \right) ( 20 , 22 ) \left( 20,-22 \right)

So there are 12 12 ordered integer solutions of ( x , y ) \left(x,y\right)

Moderator note:

Nicely done!

Ng Zhou
Aug 13, 2013

the original formula

2 x 2 + 3 x y + y 2 + 2 x + y + 18 = 0 2x^{2} + 3xy + y^{2} + 2x +y +18 =0

rearranged into

( 2 x + y ) × ( x + y ) + ( 2 x + y ) = 18 (2x+y) \times (x+y) + (2x+y) = -18

( 2 x + y ) × ( x + y + 1 ) = 18 (2x+y) \times (x+y+1)= -18

let

2 x + y = m 2x+y=m

x + y + 1 = n x+y+1=n

so

x = m n + 1 x=m-n+1

y = m + 2 n 2 y=-m+2n-2

we can conclude that

for all integers ( m , n ) ( m , n )

( x , y ) ( x , y ) will always remain integers

we known that

18 = 2 1 × 3 2 18 = 2^{1} \times 3^{2}

so 18 18 have ( 1 + 1 ) × ( 2 + 1 ) = 6 (1+1) \times (2+1) =6 positive factors

so ( m , n ) ( m , n ) can take on 12 12 different pairs of integers

same goes to ( x , y ) (x,y)

so we have 12 12 different ordered pairs of integers solutions ( x , y ) (x,y)

Moderator note:

This solution is basically the same as Thaddeus A.'s one. Side note: instead of using the # \# symbol that makes the formulas real big, just enclose them in the [ . . . ] \setminus [ ... \setminus ] brackets, instead of the ( . . . ) \setminus ( ... \setminus ) brackets.

Jubayer Nirjhor
Aug 12, 2013

Let's rewrite a bit...

( 2 x 2 + 3 x y + y 2 ) + ( 2 x + y ) + 18 = 0 (2x^2+3xy+y^2)+(2x+y)+18=0

( x + y ) ( 2 x + y ) + ( 2 x + y ) = 18 \Longrightarrow (x+y)(2x+y)+(2x+y)=-18

( 2 x + y ) ( x + y + 1 ) = 18 \Longrightarrow (2x+y)(x+y+1)=-18

So, the product of ( 2 x + y ) (2x+y) and ( x + y + 1 ) (x+y+1) is 18 -18 ... Let's factor out 18 -18 ...

18 = 1 × 18 = 1 × 18 = 2 × 9 = 2 × 9 = 3 × 6 -18=1 \times -18=-1 \times 18= 2 \times -9=-2 \times 9= 3 \times -6 = 3 × 6 = 6 × 3 = 6 × 3 = 9 × 2 = 9 × 2 =-3 \times 6=6 \times -3=-6 \times 3=9 \times -2= -9 \times 2 = 18 × 1 = 18 × 1 =18 \times -1=-18 \times 1

These are also the possible integer values of ( 2 x + y ) (2x+y) and ( x + y + 1 ) (x+y+1) ... We can see that all these values yield integer solutions of x x and y y ...

Since there are 12 12 ordered pairs of the factors of 18 -18 , and all these yield integer solutions of x x and y y , hence there are also 12 12 ordered pairs of integer solutions ( x , y ) (x,y) exists...

Therefore, the required answer is 12 \fbox {12}

A well written solution! A small suggestion though. You could have saved yourself the trouble by not going through all the cases where 18 -18 could be expressed through the product of two integers.

You could have factored 18 18 as 2 1 3 2 2^1\cdot 3^2 and come to conclusion that 18 18 had ( 1 + 1 ) × ( 2 + 1 ) = 6 (1+1)\times (2+1)= 6 positive divisors and 6 6 negative divisors.

It would have made solution a bit cleaner and easier on the eye.

You can read about the Divisor Function here .

Mursalin Habib - 7 years, 10 months ago

Log in to reply

Ya, you're right... That would make the solution cleaner... Thanks for the suggestion... I will keep that in mind in future while finding out the divisors of a number... Also thanks for the link... :)

Jubayer Nirjhor - 7 years, 10 months ago

Log in to reply

You're welcome!

Mursalin Habib - 7 years, 10 months ago
Saurav Shakya
Aug 11, 2013

2x^2 + 3xy + y^2 + 2x + y +18 = 0
x^2 + 2xy + y^2 + x^2 + 2x + 1 + xy + y +17 = 0

(x+y)^2 + (x+1)^2 + y(x+1) + 17 = 0

(x+y)^2 + (x+y+1) (x+1) + 17 = 0

LET (x+y) = k then,

k^2 + (k+1) ( k+1-y) +17 = 0

k^2 + 17 = (k+1) (y-k-1)

( k^2 + 17 ) / (k+1) = (y-k-1)

(k^2 + 2k + 1 + 16 - 2k) / (k+1) = (y-k-1)

(k+1) + (18-2k-2)/(k+1) = (y-k-1)

(k+1) + 18/(k+1) - 2 = (y-k-1)

Since x and y are integers , (y-k-1) must also be integer and it is integer only if 18/(k+1) is integer...

Number of positive factors of 18 is 6. So, number of solutions of k is 6*2=12 Thus, there are 12 ordered pairs of integer solutions

Moderator note:

One also has to show that these simultaneous solution give integer values for x x and (y.)

we can write:


3xy + 2(x + (1/2))² + (y + (1/2))² + 69/4 = 0


integer solution:


(-18,18) , (-18, 35), (-10,11) , (-10,18), (-8,10)


we get 12 pairs of integer solutions

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...