If A and B are both positive integers such that A + B = A × B , what is the value of A − B ?
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.
Quite good. Indeed, the trick on the combination of AB, A and B is often seen in many contexts.
It's always beneficial to recognise AB - B - A = (A-1)(B-1) - 1, or AB - B + A = (A-1)(B+1) + 1, or AB + A + B = (A + 1)(B+1) -1, etc., so that your argument can be shortened by a bit. You may also see a similar trick used in matrices and junior high-school maths competitions.
By the way, you may apply the exact same technique to the following problem .
A × B = A + B
A × B - A = B
A × ( B − 1 ) = B
A = ( B − 1 ) B
In order to have A as an positive integer, B must be 2 (since two adjacent natural numbers are coprime, only something next to 1 may satisfy this condition)
Plug B back to the equation
2A = A+2
A = 2
Therefore: A - B = 2 - 2 = 0
A+B=AB,
A+B/AB=1,
A/AB + B/AB=1,
B+A=1,
AB=1 (SUBSTITUTING),
=> A * 1/A=1,
=> A=B,
=> A-B=0
Brute force is simple way.
A=1 B=1 ==> A+B=2 AB=1 not ok!
A=2 B=2 ==> A+B=4 AB=4 OK. :)
Put A=2 and B=2 in the given expression.
It's good to get the solution, but you cannot guarantee that it's the only solution, i.e. there may be other solutions too.
Problem Loading...
Note Loading...
Set Loading...
A + B A + B − A B A + B ( 1 − A ) ( A − 1 ) − B ( A − 1 ) ( 1 − B ) ( A − 1 ) ( B − 1 ) ( A − 1 ) = A B = 0 = 0 = − 1 = − 1 = 1 ⟹ { B − 1 = 1 A − 1 = 1 or { B − 1 = − 1 A − 1 = − 1 After solving,we get ( A , B ) = ( 2 , 2 ) , ( 0 , 0 ) .However,since A and B are positive integers,so ( A , B ) = ( 2 , 2 ) ⟹ A − B = 0