They say that 2 wrongs do not make a right. But sometimes, they can.
In this alphameric puzzle, we could replace each of the letters with a unique digit, such that the addition works. For example, we have
+ 1 2 7 3 4 1 2 7 3 4 2 5 4 6 8
What is the total number of such solutions?
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.
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 34 35 36 37 38 39 40 41 42 |
|
My mighty Mathematica code! It runs fast!
1 2 3 4 5 6 7 8 9 |
|
⎝ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎛ W 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 4 4 4 R 2 2 2 4 4 5 5 5 5 5 5 5 5 7 7 7 7 7 9 9 9 O 7 8 9 1 7 1 1 4 4 4 7 8 9 0 0 8 8 9 1 2 3 N 3 6 3 5 6 7 9 1 3 6 3 6 3 8 9 0 4 0 5 6 0 G 4 7 8 3 5 3 3 8 8 9 4 7 8 1 1 6 6 8 3 5 6 I 5 5 5 8 9 0 0 0 0 0 1 1 1 4 4 5 5 5 8 8 8 H 6 3 7 0 3 4 8 3 7 3 6 3 7 6 8 1 9 1 0 3 1 T 8 4 6 6 0 6 6 6 6 8 8 4 6 2 2 2 2 6 6 0 2 ⎠ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎞
Well done Agnishom!
Wow i am speechless, what is the language used by the way ?
And this is my C++ code :P I think it is one of my ugliest codes :D
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
Here's my C++ code
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
Solution in python 3.4
1 2 3 4 5 6 7 8 9 10 |
|
Java 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 32 33 34 35 |
|
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
I am in year 6 and my teacher gave me this question, these comments are so helpful.
Problem Loading...
Note Loading...
Set Loading...
WRONG and RIGHT:
Answer: 2 1