Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Integer solutions to $ab=a+b$

Writer Sebastian Wright
$\begingroup$

If $ab=a+b$ is there only one possible solution,i.e. $a=b=2$? ($a$ and $b$ not equal to zero and are integers). If not what are the others?

I have proved that $a$ always needs to be equal to $b$. My proof is as follows- $ab=\cdot a\cdot a\cdot \cdots$ ($b$ times). Since the product is a factor of $a$ then clearly $b$ must be equal to $a$ for the equation to hold true. Please help me with all the possible solutions and is $2$ is the only possible solution please help me to prove it that it is the only possible solution. Thanks a lot in advance.

$\endgroup$ 5

3 Answers

$\begingroup$

If $ab=a+b$, then $ab-a-b+1=1$, or $(a-1)(b-1)=1$. Then if $a$ and $b$ are integers, we have either $a-1=b-1=1$, and $a=b=2$, or $a-1=b-1=-1$ and $a=b=0$. If $a$ and $b$ are not necessarily integers, then choose a nonzero real number $r$, then $a=r+1$, $b=\frac{1}{r}+1$ is a solution to the equation.

$\endgroup$ 2 $\begingroup$

It is not necessary to rely on jgon's clever trick of adding $1$ to both sides of an equation. $ab=a+b \Leftrightarrow ab-b=(a-1)b=a$. This means that $(a-1)$ is a factor of $a$. In the integers, that can only be true in two cases: $(a-1)=1$ or $a=0$. Simple substitution and arithmetic using those values gives the previously identified solutions, $a=b=2$ and $a=b=0$.

$\endgroup$ $\begingroup$

Well you can have $ab=a+b$ so $ab-a-b=0$ so $a(b-1)-b=0$ so $a(b-1)-(b-1)=1$ so $(a-1)(b-1)=1$. $(a,b)=(2,2)$ is one integer solution. There is also $-1 \cdot-1)$ so $(0,0)$ is the other integer solution. However, there are infinite non-integer solutions. We know that $\frac{1}{2}\cdot2=1$, $\frac{1}{3}\cdot3=1$, etc etc. So there are infinite solutions, like $(2,2) (\frac{3}{2},3), (\frac{4}{3},4)$ and so on. This is a bit like a previous post, but the reason that there are infinite is because if $a-1$ is some number greater than 0, call it $x$, then $\frac{1}{x+1}$ and $x-1\cdot \frac{1}{x+1}$ is the value of $b$ so that $ab=1$. Because there are infinite number that are $\neq0$, there are $\inf$ values of $a$ and $b$ that work, but $2$ integer values that work. This is quite similar to other posts, just sharing the way I did it.

$\endgroup$ 1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy