+ E T F N I H O T T I G R R E E N H E T N N E T E Y
How many solutions exists to the given addition problem, where each letter represents a distinct digit?
Note: The first digit of a number can be zero. For example (not necessarily true), in the number N I N E , we can have it as 0 I 0 E .
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.
How can we show that there are only 10 solutions?
You made a list of some solutions for the problem, but you have to prove that there are only 10 solutions.
I have written the shortest and the most concise code I can get for solving this problem:
1 2 3 4 5 |
|
1 2 |
|
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 32 33 |
|
This is pretty good and straightforward but we can use permutations from itertools to shorten it up a LiTtLe BiT lol:
1 2 3 4 5 |
|
1 2 |
|
Problem Loading...
Note Loading...
Set Loading...
There are 10 solutions:
4 1 7 + 4 1 7 + 7 8 7 1 + 1 8 3 2 4 + 4 2 5 1 1 = 6 9 5 4 0
7 0 1 + 7 0 1 + 1 4 1 0 + 0 4 2 6 7 + 7 6 5 0 0 = 8 3 5 7 9
0 4 7 + 0 4 7 + 7 1 7 4 + 4 1 6 9 0 + 0 9 3 4 4 = 5 8 3 0 2
7 1 8 + 7 1 8 + 8 2 8 1 + 1 2 3 4 7 + 7 4 0 1 1 = 9 6 0 7 5
1 4 8 + 1 4 8 + 8 2 8 4 + 4 2 3 9 1 + 1 9 6 4 4 = 7 0 6 1 5
7 1 3 + 7 1 3 + 3 4 3 1 + 1 4 2 0 7 + 7 0 6 1 1 = 8 9 6 7 5
6 3 1 + 6 3 1 + 1 0 1 3 + 3 0 7 5 6 + 6 5 2 3 3 = 9 8 2 6 4
3 2 9 + 3 2 9 + 9 4 9 2 + 2 4 8 6 3 + 3 6 0 2 2 = 7 1 0 3 5
6 2 4 + 6 2 4 + 4 0 4 2 + 2 0 7 5 6 + 6 5 3 2 2 = 9 1 3 6 8
3 0 8 + 3 0 8 + 8 7 8 0 + 0 7 6 4 3 + 3 4 2 0 0 = 5 1 2 3 9