2 variables 1 equation?

Let m m and n n be two positive integers such that m + n + m n = 118 m + n + mn = 118

Then the value of m + n m+n is

not uniquely determined 22 18 20

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.

4 solutions

Ravi Dwivedi
Jul 16, 2015

m + n + m n = 118 m+n+mn=118

m ( 1 + n ) + 1 ( 1 + n ) = 118 + 1 m(1+n)+1 \cdot (1+n)=118+1

( m + 1 ) ( n + 1 ) = 119 (m+1)(n+1)=119

Since m m and n n are positive integers { m + 1 = 17 n + 1 = 7 m = 16 , n = 6 \begin{cases} m+1=17\\ n+1=7\end{cases} \implies m=16,n=6

{ m + 1 = 7 n + 1 = 17 m = 6 , n = 16 \begin{cases} m+1=7\\ n+1=17\end{cases} \implies m=6,n=16

Other cases will not yield positive solutions

So in either case m + n = 16 + 6 = 22 m+n=16+6=\boxed{22}

Moderator note:

Simon's Favorite Factoring Trick makes this problem much easier to deal with.

How did you get to know the values of (m+1) and (n+1)?

Abhay Tiwari - 5 years, 11 months ago

Log in to reply

Factors of 119 are 1,7,17,119

Ravi Dwivedi - 5 years, 11 months ago

I did the same

Paola Ramírez - 5 years, 11 months ago

Great approach!!!

Ravneet Singh - 5 years, 11 months ago
Garrett Clarke
Jul 16, 2015

Let's restate the question in terms of a quadratic. Let x = m x=m and a = m + n n = a x a=m+n\Longrightarrow n=a-x .

a + x ( a x ) = 118 a+x(a-x)=118

x 2 a x + 118 a = 0 x^2-ax+118-a=0

x = a ± a 2 4 ( 118 a ) 2 x=\frac{a\pm \sqrt{a^2-4(118-a)}}{2}

We know that x x must be an integer, so we need to check the determinant a 2 4 ( 118 a ) a^2-4(118-a) to see whether a = { 18 , 20 , 22 } a=\{18, 20,22\} lead to square numbers.

1 8 2 4 ( 118 18 ) = 76 18^2-4(118-18)=-76

2 0 2 4 ( 118 20 ) = 8 20^2-4(118-20)=8

2 2 2 4 ( 118 22 ) = 100 = 1 0 2 22^2-4(118-22)=100=10^2

Only 22 22 leads to an integer solution for x x , therefore our solution must be a = 22 a=\boxed{22} .

Joshua Prettyman
Jul 27, 2015

m and n are not exactly variables, they cannot vary!

x x is a variable in f ( x ) = x 2 + 7 x 20 f(x)=x^2+7x-20 but when we write x 2 + 7 x 20 = 0 x^2+7x-20=0 the x x here is not a 'variable' but an 'unknown'. This is the most basic distinction between the different ways that mathematicians use letters in place of numbers, there are many! One of the most common causes of confusion for kids who aren't so good at maths is that they are used to unknowns only because the teacher always asks them to "find x x ", then when they advance through school they treat all letters as unknowns, even variables. When I tutor kids I often find they ask "but what is x x ?" when I write down an expression (with x x as a variable). I say "it's a variable, it can be any number". "Yeah, but what is it now?". "Any number". "so.. 7?". "well it could be 7, but we want to consider the expression, we don't want to consider particular values for x x ". "so can we just say x = 7 x=7 ?" etc. etc. They find it very hard to keep an open mind with regards to variables. For many kids, all letters in maths are just "numbers in disguise", place holders waiting to be substituted for a number.

Sorry this is not a solution. I hope this is interesting to some people, particularly non-native english speakers. Language is very important in explaining mathematics.

Deep Joshi
Jul 27, 2015

for(int i=0;i<100;i++) { for(int j=0;j<100;j++) { if((i+j+(i*j))==118) { System.out.println("i = "+i+"j = "+j); } }

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...