We know that the order of digits in a number matter, and we cannot randomly swap them around. Most of the time,
A B × C D = B A × D C .
How many ordered tuples of non-zero digits ( A , B , C , D ) are there such that
A B × C D = B A × D C ?
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.
This solution is incorrect as I missed out several cases. See the report forum for correct solutions.
(Solution deleted)
We also have cases where a=b and c=d
Log in to reply
Thanks. As it turns out, I missed out a lot of cases. Sorry about that. I have updated the answer to 209
Here is how I solved it.
If we write the decimal expansion of the equation, we get
( 1 0 A + B ) ( 1 0 C + D ) = ( 1 0 B + A ) ( 1 0 D + C )
Simplifying this gives A × C = B × D
I then listed all the possible products A × C , where A and C are from 1 to 9.
These products can be divided into 4 cases
Case 1. A × C can only be written as a product of two same numbers ONLY.
We see that the following numbers satisfy this case
1. | 1 | 1 × 1 |
2. | 2 5 | 5 × 5 |
3. | 4 9 | 7 × 7 |
4. | 6 4 | 8 × 8 |
5. | 8 1 | 9 × 9 |
There is exactly one ordered tuple for each number (for example ( 1 , 1 , 1 , 1 ) ) and since there are 5 numbers in this case, there are 5 × 1 = 5 ordered tuples.
Case 2 A × C can only be written as a product of two distinct digits
1. | 2 | 1 × 2 |
2. | 3 | 1 × 3 |
3. | 5 | 1 × 5 |
4. | 7 | 1 × 7 |
5. | 1 0 | 2 × 5 |
6. | 1 4 | 2 × 7 |
7. | 1 5 | 3 × 5 |
8. | 2 0 | 4 × 5 |
9. | 2 1 | 3 × 7 |
10. | 2 7 | 3 × 9 |
11. | 2 8 | 4 × 7 |
12. | 3 0 | 5 × 6 |
13. | 3 2 | 4 × 8 |
14. | 3 5 | 5 × 7 |
15. | 4 0 | 5 × 8 |
16. | 4 2 | 6 × 7 |
17. | 4 5 | 5 × 9 |
18. | 4 8 | 6 × 8 |
19. | 5 4 | 6 × 9 |
20. | 5 6 | 7 × 8 |
21. | 6 3 | 7 × 9 |
22. | 7 2 | 8 × 9 |
For each number, we have 4 possible ordered tuples, (since there are 2! permutations of ( A , C ) and 2! permuations of ( B , D ) ), and since there are 22 numbers, the total number of tuples = 2 2 × 4 = 8 8
Case 3 A × C can be written as a product of two same digits OR a product of two different digits.
1. | 4 | 1 × 4 | 2 × 2 |
2. | 9 | 1 × 9 | 3 × 3 |
3. | 1 6 | 2 × 8 | 4 × 4 |
4. | 3 6 | 4 × 9 | 6 × 6 |
For each number there are 9 possible tuples, ( ( A , C ) and ( B , D ) both have 3 choices each) therefore total tuples = 4 × 9 = 3 6
Case 4 A × C can be written as a product of two different digits in two ways.
1. | 6 | 1 × 6 | 2 × 3 |
2. | 8 | 1 × 8 | 2 × 4 |
3. | 1 2 | 2 × 6 | 3 × 4 |
4. | 1 8 | 2 × 9 | 3 × 6 |
5. | 2 4 | 3 × 8 | 4 × 6 |
For each number there are 16 possible tuples, ( ( A , C ) and ( B , D ) both have 4 choices each) therefore total tuples = 5 × 1 6 = 8 0
Adding all of them gives, 5 + 8 8 + 3 6 + 8 0 = 2 0 9
Log in to reply
The first 2 cases are all trivial. the next 2 cases provide 14 sets of tuples.
12 X 42 =21 X 24 // 13 X 92 =31 X 29 //24 X 84 =42 X 48 //46 X 96 =64 X 69
12 X 63 = 21 X 36// 13 X 62 =31 X 26// 12 X 84 =21 X 48 //14 X 82 =41 X 28
23 X 64 =32 X 46// 24 X 63 =42 X 36//23 X 96 =32 X 69 //29 X 36 = 92 X 63
34 X 86 =43 X 68// 36 X 84 = 63 X 48 //All these are distinct number sets.
I think A=D ,B=C SOLutions are not correct
Log in to reply
AB X CD = BA X DC (10 A + B ) X (10 C +D) =(10 B + A)(10 D + C) 100 A C + 10 (AD +BC) + B D = 100 B D + 10(BC +AD) +A C 99 A C = 99 B D A C = B D 1 X6 = 2 X3 = 3X2 12 X63 =21 X 36 13 X62 = 31 X26 1X4 =2 X2 12X 42 =21 X24 1 X8 = 2 X4 = 4 X2 12 X 84 =21 X 48 14 X82 =41 X 28
like that we can write for
2 X6 = 3 X4 = 4 X3 2 X8 =4 X4 3 X 6 = 2X 9 = 9 X2 4 X6 =3 X8 =8 X3 etc. they give different pairs.
Log in to reply
Right. my solution is incorrect. Let me completely remove it. I was doing this problem in a daze, and didn't work through it completely.
Problem Loading...
Note Loading...
Set Loading...
Java solution:
Note that the if statement simply checks if A B × C D = B A × D C . Sure enough, the program says it's 209.