Let denote two non-negative integers such that
How many different possibilities of and are there?
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.
Let A = a b and B = c d , where a , b , c , d are integers and 0 ≤ a , b , c , d ≤ 9
Therefore, A − B = a b − c d = ( 1 0 a + b ) − ( 1 0 c + d ) = 1 0 ( a − c ) + ( b − d )
Thus, a + b + c + d = 1 0 ( a − c ) + ( b − d )
Now realize that 0 ≤ a + b + c + d ≤ 3 6 and m i n ( b − d ) = − 9 , therefore 0 ≤ 1 0 ( a − c ) + ( b − d ) ≤ 3 6 0 ≤ 1 0 ( a − c ) − 9 ≤ 3 6 0 ≤ 1 0 ( a − c ) ≤ 4 5
Since a and c are integers, and also a − c , so 0 ≤ 1 0 ( a − c ) ≤ 4 0 0 ≤ a − c ≤ 4
Now we will consider 5 cases.
Case 1: a − c = 0
a + b + c + d = b − d ⇒ c + b + c + d = b − d ⇒ 2 c = − 2 d ⇒ c = − d ⇒ c = d = 0 ⇒ a = c = d = 0 , 0 ≤ b ≤ 9
Therefore, there are 10 possibilities in this case
We will deal with the cases which a − c = 1 , 2 , 3 , 4 with the same manner (expressing a in terms of c and substitution), and we end up with the following results:
Case 2: a − c = 1
c + d = 4 . 5 = i n t e g e r
Therefore, an impossible case
Case 3: a − c = 2
c + d = 9 and a − c = 2 and 0 ≤ b ≤ 9
Since c is non-negative, a ≥ 2 , and we can find 8 triple pair of ( a , c , d ) with a start from 2 to 9.
For each triple pair ( a , c , d ) , any 0 ≤ b ≤ 9 is a solution. Thus, we have 8 × 1 0 = 8 0 possibilities in this case.
Case 4: a − c = 3
Similar with Case 2, we end up with c + d = 1 3 . 5 , which means another impossible case
Case 5: a − c = 4
We end up with c + d = 1 8 , which means c = d = 9 and a = 1 3 ≥ 9 Another impossible case.
Overall, only Case 1 and 3 yields possibilities to the problem, and we get total 1 0 + 8 0 = 9 0 possibilities!