Only One Equation Given?

Algebra Level 2

For natural numbers x , y x,y , how many solution are there for the equation x + y + x y = 20 x+y+xy=20 ?


The answer is 2.

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

The question almost tricked me, because only natural number solutions are needed.

x + y + x y = 20 ( x + 1 ) ( y + 1 ) 1 = 20 ( x + 1 ) ( y + 1 ) = 21 x+y+xy=20\quad \Rightarrow (x+1)(y+1)-1=20\quad \Rightarrow (x+1)(y+1)=21

For integer solutions of x x and y y , we have:

x + 1 y + 1 x y 21 1 22 2 7 3 8 4 3 7 4 8 1 21 2 22 1 21 0 20 3 7 2 6 7 3 6 2 21 1 20 0 \begin{array} {rrrr} x+1 & y+1 & x & y \\ -21 & -1 & -22 & -2 \\ -7 & -3 & -8 & -4 \\ -3 & -7 & -4 & -8 \\ -1 & -21 & -2 & -22 \\ 1 & 21 & 0 & 20 \\ 3 & 7 & 2 & 6 \\ 7 & 3 & 6 & 2 \\ 21 & 1 & 20 & 0 \end{array}

There are only 2 \boxed{2} natural ordered pairs of ( x , y ) (x,y) solutions, which are ( 2 , 6 ) (2,6) and ( 6 , 2 ) (6,2) .

We can rewrite the equation as ( x + 1 ) ( y + 1 ) = 21. (x + 1)(y + 1) = 21. Now as both x x and y y must be natural numbers we are looking to factorize 21 21 as a product of two integers each greater than 1 1 . There are only two ordered ways of doing this, namely 3 7 3*7 and 7 3 7*3 . Thus there are just 2 \boxed{2} solution pairs ( x , y ) (x,y) , namely ( 2 , 6 ) (2,6) and ( 6 , 2 ) (6,2) .

This problem is somewhat unclear as the natural numbers are defined as either the non-negative integers thus including 0 or the positive integers so 0 is not included. You get either two or four solutions depending on which interpretation you choose.

Scott Ripperda - 6 years, 2 months ago
Ken Walling
Aug 29, 2015

Depending on whether or not you include or exclude 0 as a natural number and depending on whether you count inverted solutions as unique, you could have either 2 or 4 solutions. (2,6) and its inverse of (6,2) as well as (0, 20) and its inverse of (20,0).

Deep Shah
Apr 2, 2015

Here's my C code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include<stdio.h>

void main()
{
    int i,j;
    int count = 0;
    for(i=1;i<=19;i++)
    {
        for(j=1;j<=19;j++)
        {
            if((i + j + i*j)==20)
            {
                printf("%d %d\n",i,j);
                count++;
            }
        }
    }
    printf("Count is : %d\n",count);
}

Oli Hohman
Mar 23, 2015

I know that this isn't very formal, but I found a solution of (2,6) right away just by guessing.

After guessing, and by the commutative property of addition and the associative property of multiplication, you can reverse x and y for the other solution (6,2).

Rohit Khatri
Mar 23, 2015

first- x=0 then equation gives 20 second y=0 then equation gives 20

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...