✔ 最佳答案
You have to solve A+B=AB, i.e. A+B-AB=0
by simple algebra:
A+B-AB = 0
(A-1)(B-1) - 1 = 0
==> B = 1/(A-1) + 1
Thus, you can have many combinations of A, B, C
E.g.: A = 5, B = 1.25, C = 6.25
However, if you restrict the solutions to be integers, The only combinations is (A, B, C) = (0,0,0) or (2,2,4)
It can be explained as follows:
To make B to be integer, 1/(A-1) must be an integer, i.e.
|A-1| <= 1 ==> A = 0, 1, 2
If A = 0, B = 0 and C = 0
If A = 1, B and C is undefined
If A = 2, B = 2 and C = 4