Consider the 10-digit integer
N = A B C D E F G H I J
(where A , B , C , D . . J are the digits of N ). Each digit of N is a number between 0 and 9 inclusive and all digits of N are different from each other.
What must be the value of N so that the three vertical and three horizontal operations in the table below are correct?
E D J H − E D B = E E I D ÷ × − J F + I = D J = = = A A + E H C G = E E A E
Details and assumptions
You may assue that only one value of N satisfies the constraints above.
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.
Yes, I did it this way too. It, surprisingly, did not take that long to do.
Hint: don't use the division and multiplication rows. They are too hard to mess with.
Here is a pure programming solution:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
You WON'T believe what I have just done to get the number.....!!
My solution using python bruteforce:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Answer: 5793146082
Approach like constrain satisfaction problem . For example take the equation with addition and subtraction first and try to get the solution for same variable , the Equation JF + I = DJ gives us D = J + 1, and the equation EEID - DJ = EEAE gives us D %10 = J + E from these two we can get E = 1 , and from equation AA + EHCG = EEAE gives us H + 1 = E , therefore H = 0, and C =9 , because, C + A = A from same equation we can get 1 carry from G + A = E .. in this similar approach we can solve for all the alphabet ..
Problem Loading...
Note Loading...
Set Loading...
A systematic approach is possible. For example, the units digit of E E I D − D J = E E A E tells us that J + E ≡ D ( m o d 1 0 ) . The tens digit of J F + I = D J tells us that D = J + 1 . Therefore, E = 1 .
Then the hundreds digit of A A + E H C G = E E A E tells us that H + 1 = E , so H = 0 . All the other digits can be worked out similarly.