TL;DR
1)Someone told you that they found solutions to the cryptogram above and that the two of their solutions sum up to
2)Upon hearing this and doing some calculations, you claim you can do better, by finding solutions to the cryptogram above. The of your two additional solutions also sum up to .
3)Justify your claim and enter the sum of all possible values of into the answer box.
"Guys, we have rescue missions to run. We can't stick around wasting our time solving this puzzle. There might be no solutions at all," Char the charmander lamented, cupping his tail flame with both hands. His tail flame has gotten pretty large, evident of his frustration, which he was trying to hide from his team.
"To tell you a fact, I spotted two solutions within the first minute. To think that the three brains of your team can't match the one of an old bug..." Scythe sighed.
"Can I get a hint, please?" Ray the raichu pleaded. "I promise, I will make sure we solve this cryptogram before dinner. We will even skip dinner to work on it if necessary."
"RAY!" Char and Saura exclaimed in unison.
"Heh, frivolous optimism. I like your attitude, Ray. Let me give you a hint, then. For the two sets of solution I found, the two s add up to . I expect your teammates to hold up the end of your bargain." Scythe said with a mischievous grin.
With blinding speed, the scyther zipped out of the door. Before the members of Team Ember had time to even bat their eyelashes, the sound of a clicking padlock was audible. They had been locked in! In their own room, no less.
"You have three chances. Tell me the answer and you will be free to go for dinner!" Scythe's voice seemed awfully cheerful.
"What... RAY!! Whaaat have you dooone!" Char yelled, practically mourning for the loss of a meal.
Suddenly, an idea clicked in Ray's mind. "Guys, I think I know how to solve this. Give me a moment!"
With a piece of charcoal in his hand, Ray furiously worked out the solution, only to be disappointed less than a minute later.
"Guys, Sycthe isn't making this easy for us. I tried the most straightfoward approach, thinking it would work, but it wouldn't." Ray slumped over onto the floor, still reeling in disappointment.
"However, this means that we can now find solutions to this cryptogram. Aren't you guys excited? Come on, remember our team motto? The fire will never die, until the last ember fades!" Ray said, trying to put on a cheerful mood.
Both Char and Saura pretended to have not heard Ray. They were still bitter about missing dinner.
"Hey, Scythe! Based on your hint, I promise that I will be able to find four sets of solutions. If necessary, we will skip tomorrow's breakfast to work on this." Ray spoke excitedly.
"You are a clever little rodent, aren't ya?" Sycthe laughed. "Four solutions, gotcha."
Char's and Saura's eyes just glossed over.
Dear readers,
Explain Ray's change in mood, from his initial excitement to disappointment to his later bold claim that four distinct solutions can be found. (Mathematically, of course!)
Enter the sum of all possible values of into the answer box.
Reference: Silver Resistance fanfiction
In the fanfiction, Char the Charmander, Saura the Bulbasaur and Ray the Raichu are the founding members of Team Ember, a resistance team opposing the evil forces of the Master.
This question is part of the problem set Mathematics in Anime
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.
+ + S E A M C R U B H A R E A Y A R R
Terminology : I read the cryptogram from left to right, so I will refer to the leftmost column as the first column, and so on..
First, note that if we can find one set of solution, we can easily find another by just interchanging the numbers representing H and U in the cryptogram. Doing so will not affect other parts of the cryptogram, since we are interchanging numbers in a single column which do not appear elsewhere in the cryptogram.
This explains why Ray is so excited at the beginning. He thought the two sets of solutions just have their H and U interchanged, proceeded to divide 1 2 5 6 by 2 to get R A Y = 6 2 8 . However, he soon discovered that this is not the case. Note that if Y = 8 , R = 6 , A = 2 , we can deduce that E = 1 by looking at the last two columns. This is a contradiction, since if E = 1 , then from the first column, S < 1 , which leaves only 1 option, that is S = 0 , but we (and Ray) know full well that this cannot be.
Therefore, Ray concludes once he found the two sets of solutions which match the conditions set by Scythe, he can easily interchange the H and U in both sets of solutions to get 2 more solutions.
Now, we move on to the task of finding the solutions. First, every congruence you see will be in modulo 10. We will not specify this in every congruence since there are a large number of them. Note that from the last column R + Y + A ≡ R . This can only happen if Y + A ≡ 0 . Since Y + A < 2 0 , we conclude that Y + A = 1 0 and there is a carry over of 1 from the last column to the fourth column. From the fourth column, this implies that 2 A + R + 1 ≡ E .
From the first column, we can conclude that S + 1 = E with a carry over of 1 from the second column. Why a carry over of 2 is not possible is left to the reader.
From the hint that the two R A Y sums up to 1 2 5 6 , we can write this congruence: Y 1 + Y 2 ≡ 6 , where Y 1 and Y 2 denotes the two solutions of Y . We will now investigate the possible values of Y .
Suppose that Y = 0 , then from Y + A = 1 0 , A = 1 0 , a clearly impossible case.
Suppose that Y 1 = 1 , then we conclude that Y 2 = 5 and as a consequence A 2 = 5 , again, clearly impossible since Y 2 and A 2 must be different numbers.
For Y 1 = 2 , A 1 = 8 , note that Y 2 = 4 , A 2 = 6 . As a consequence, R 1 8 2 + R 2 6 4 = 1 2 5 6 , or ( R 1 + R 2 ) ( 1 0 0 ) = 1 1 1 0 , clearly a contradiction.
Now, we move on to the case where Y = 3 , A = 7 . Note that the congruence Y 1 + Y 2 ≡ 6 forces Y 1 , Y 2 = 3 and A 1 , A 2 = 7 . We thus obtain ( R 1 + R 2 ) ( 1 0 0 ) + ( 7 3 ) ( 2 ) = 1 2 5 6 , or ( R 1 + R 2 ) ( 1 0 0 ) = 1 1 1 0 , an impossibility.
Now, suppose that Y 1 = 4 . This would mean that Y 2 = 2 , but we have already proven that Y = 2 !
Suppose that Y = 5 , then note that A = 5 , an impossibility. If Y 1 = 6 , then Y 2 = 0 , a clear impossibility as we have proven above.
If Y 1 = 8 , then Y 2 = 8 , and the two A s= 2 . As a consequence, ( R 1 + R 2 ) ( 1 0 0 ) + ( 2 8 ) ( 2 ) = 1 2 5 6 or R 1 + R 2 = 1 2 . Possible combinations for the two R s are ( 3 , 9 ) , ( 4 , 8 ) , ( 5 , 7 ) , ( 6 , 6 ) . The cases of ( 9 , 3 ) , ( 8 , 4 ) , ( 7 , 5 ) are symmetrical.
We can straightaway rule out ( 4 , 8 ) since already Y = 8 . The case of ( 6 , 6 ) has been discussed at the very beginning, and therefore is ruled out as well. From the congruences 2 A + R + 1 ≡ E and S + 1 ≡ E , we obtain 2 A + R ≡ S . Now, let's suppose that R 1 = 3 . From the congruence 2 A + R ≡ S , we can deduce that S = 7 and E = 8 , but this is an impossibility since already, Y = 8 . Suppose now that R 1 = 5 , then from the congruence again, we get S = 9 and E = 0 , clearly an impossibility.
Therefore, all that is left for possible values of Y and A are Y 1 = 7 , A 1 = 3 and Y 2 = 9 , A 2 = 1 . Now, finally that is some progress!
Now, note that R 1 3 7 + R 2 1 9 = 1 2 5 6 , or R 1 + R 2 = 1 2 . The possible values for ( R 1 , R 2 ) in ordered pairs are ( 3 , 9 ) , ( 4 , 8 ) , ( 5 , 7 ) , ( 6 , 6 ) , ( 7 , 5 ) , ( 8 , 4 ) , ( 9 , 3 ) . We can immediately spot the deal breakers ( 3 , 9 ) and ( 7 , 5 ) . (Why?)
To eliminate the option ( 4 , 8 ) , we focus on the values of R 2 and A 2 . Note that R 2 = 8 and A 2 = 1 , and from the congruence 2 A + R ≡ S , S = 0 , which we know is impossible.
To eliminate the option ( 5 , 7 ) , note that R 2 = 7 and A 2 = 1 forces S 2 = 9 . However, 9 is already represented by Y 2 .
To eliminate the option ( 6 , 6 ) , note that R 2 = 6 and A 2 = 1 forces S 2 = 8 and E 2 = 9 . However, this is a contradiction since 9 is already represented by Y 2 .
Now, we are left with 2 options of ( Y 1 , A 1 , E 1 , S 1 , R 1 , Y 2 , A 2 , E 2 , S 2 , R 2 ) , namely ( 7 , 3 , 6 , 5 , 9 , 9 , 1 , 6 , 5 , 3 ) and ( 7 , 3 , 5 , 4 , 8 , 9 , 1 , 7 , 6 , 4 ) . We will prove that the first option is wrong.
For the first option, let's focus on the values of ( Y 1 , A 1 , E 1 , S 1 , R 1 ) and attempt to complete the cryptogram.
+ + 5 6 3 M C 9 U B H 3 9 6 3 7 3 9 9
Now, the available digits are 0 , 1 , 2 , 4 , 8 . Note that there is a carry over of 1 from the second column to the first column. In order for this to be possible C must equal 8 . (Why?)
Now, notice that there is a carry over of 1 from the fourth column to the third column. This implies that H + U ≡ B , which we must satisfy using 0 , 1 , 2 , 4 . Obviously, this is impossible. Therefore, we reject the first option and now are left only with the second option.
For the second option, let's focus on the values of ( Y 1 , A 1 , E 1 , S 1 , R 1 ) and attempt to complete the cryptogram first.
+ + 4 5 3 M C 8 U B H 3 8 5 3 7 3 8 8
The unused digits are 0 , 1 , 2 , 6 , 9 . Focus on the second column. In order for there to be a carry over to the first column, note that C = 6 or C = 9 .
Suppose that C = 9 , then M = 2 . There cannot be any carry over from the third column (Why? Think about the values M can take!). Notice that there is a carry over of 1 from the fourth column to the third column, implying the equality 9 + H + U = B (no carry over, remember!). However, it is now pretty obvious that this is impossible.
Therefore, C = 6 . If we attempt to complete the congruence 9 + H + U ≡ B using only the values 0 , 1 , 2 , 9 , the only possible combinations are ( H , U , B ) = ( 0 , 2 , 1 ) , ( 2 , 9 , 0 ) and another pair where H and U interchange. For the first option, note that M = 9 . This cannot be true since there is a carry over of 1 from the third column. For the second option, note that M = 1 . Checking, we find that everything holds true. We have thus find the first two solutions to the cryptogram!
Now, we proceed to find the second pair of solutions. The partially completed cryptogram with values of ( Y , A , E , S , R ) = ( 9 , 1 , 7 , 6 , 4 ) is as below:
+ + 6 7 1 M C 4 U B H 1 4 7 1 9 1 4 4
The unused digits are 0 , 2 , 3 , 5 , 8 . Note that in order for a carry over of 1 from the second column to the first column to be possible, C = 8 . Now we attempt to complete the congruence 4 + H + U ≡ B using the values of 0 , 2 , 3 , 5 . We find only two possibilities, that is ( H , U , B ) = ( 5 , 3 , 2 ) , ( 3 , 5 , 2 ) . This also implies that M = 0 . Checking the solution, we find that everything holds true. Thus, we have our second pair of solutions.
A quick computation reveals the the sum of all 4 possible values of C H A R is 8 3 1 4 + 8 5 1 4 + 6 2 3 8 + 6 9 3 8 = 3 0 0 0 4 .
On a totally unrelated note, if anyone manages to find extra solutions to the cryptogram above (without any conditions attached), please let me know. I have zero programming knowledge and am too unmotivated to work through the large number of cases by hand.