Single cryptogram, quadruple solutions?

Logic Level 5

C H A R R A Y + S A U R A E M B E R \large\begin{array}{c}&&C&H&A&R \\ \quad &&R&A&Y\\ + \quad S&A&U&R&A\\ \hline \qquad E&M&B&E&R \end{array}

TL;DR

1)Someone told you that they found 2 2 solutions to the cryptogram above and that the two R A Y \overline{RAY} of their solutions sum up to 1256 1256

2)Upon hearing this and doing some calculations, you claim you can do better, by finding 4 4 solutions to the cryptogram above. The R A Y \overline{RAY} of your two additional solutions also sum up to 1256 1256 .

3)Justify your claim and enter the sum of all 4 4 possible values of C H A R \overline{CHAR} 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 R A Y \overline{RAY} s add up to 1256 1256 . 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 4 4 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,

1 ) 1) 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!)

2 ) 2) Enter the sum of all 4 4 possible values of C H A R \overline{CHAR} 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


The answer is 30004.

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 solution

Zk Lin
Jan 11, 2016

C H A R + R A Y + S A U R A E M B E R \begin{array}{c}&&&C&H&A&R \\ +&&&R&A&Y\\ +& S&A&U&R&A\\ \hline & E&M&B&E&R \end{array}

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 H and U 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 H and U U interchanged, proceeded to divide 1256 1256 by 2 2 to get R A Y = 628 \overline{RAY}=628 . However, he soon discovered that this is not the case. Note that if Y = 8 , R = 6 , A = 2 Y=8, R=6, A=2 , we can deduce that E = 1 E=1 by looking at the last two columns. This is a contradiction, since if E = 1 E=1 , then from the first column, S < 1 S<1 , which leaves only 1 1 option, that is S = 0 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 H and U U in both sets of solutions to get 2 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 R+Y+A \equiv R . This can only happen if Y + A 0 Y+A \equiv 0 . Since Y + A < 20 Y+A<20 , we conclude that Y + A = 10 Y+A=10 and there is a carry over of 1 1 from the last column to the fourth column. From the fourth column, this implies that 2 A + R + 1 E 2A+R+1 \equiv E .

From the first column, we can conclude that S + 1 = E S+1=E with a carry over of 1 1 from the second column. Why a carry over of 2 2 is not possible is left to the reader.

From the hint that the two R A Y \overline{RAY} sums up to 1256 1256 , we can write this congruence: Y 1 + Y 2 6 Y_1+Y_2 \equiv 6 , where Y 1 Y_1 and Y 2 Y_2 denotes the two solutions of Y Y . We will now investigate the possible values of Y Y .

Suppose that Y = 0 Y=0 , then from Y + A = 10 Y+A=10 , A = 10 A=10 , a clearly impossible case.

Suppose that Y 1 = 1 Y_1=1 , then we conclude that Y 2 = 5 Y_2=5 and as a consequence A 2 = 5 A_2=5 , again, clearly impossible since Y 2 Y_2 and A 2 A_2 must be different numbers.

For Y 1 = 2 , A 1 = 8 Y_1=2, A_1=8 , note that Y 2 = 4 , A 2 = 6 Y_2=4, A_2=6 . As a consequence, R 1 82 + R 2 64 = 1256 \overline{R_{1}82} + \overline{R_{2}64} = 1256 , or ( R 1 + R 2 ) ( 100 ) = 1110 (R_1+R_2)(100)=1110 , clearly a contradiction.

Now, we move on to the case where Y = 3 , A = 7 Y=3, A=7 . Note that the congruence Y 1 + Y 2 6 Y_1+Y_2 \equiv 6 forces Y 1 , Y 2 = 3 Y_1, Y_2=3 and A 1 , A 2 = 7 A_1,A_2=7 . We thus obtain ( R 1 + R 2 ) ( 100 ) + ( 73 ) ( 2 ) = 1256 (R_1+R_2)(100)+(73)(2)=1256 , or ( R 1 + R 2 ) ( 100 ) = 1110 (R_1+R_2)(100)= 1110 , an impossibility.

Now, suppose that Y 1 = 4 Y_1=4 . This would mean that Y 2 = 2 Y_2=2 , but we have already proven that Y 2 Y \neq 2 !

Suppose that Y = 5 Y=5 , then note that A = 5 A=5 , an impossibility. If Y 1 = 6 Y_1=6 , then Y 2 = 0 Y_2=0 , a clear impossibility as we have proven above.

If Y 1 = 8 Y_1=8 , then Y 2 = 8 Y_2=8 , and the two A A s= 2 2 . As a consequence, ( R 1 + R 2 ) ( 100 ) + ( 28 ) ( 2 ) = 1256 (R_1+R_2)(100)+(28)(2)=1256 or R 1 + R 2 = 12 R_1+R_2=12 . Possible combinations for the two R R s are ( 3 , 9 ) , ( 4 , 8 ) , ( 5 , 7 ) , ( 6 , 6 ) (3,9),(4,8),(5,7),(6,6) . The cases of ( 9 , 3 ) , ( 8 , 4 ) , ( 7 , 5 ) (9,3),(8,4),(7,5) are symmetrical.

We can straightaway rule out ( 4 , 8 ) (4,8) since already Y = 8 Y=8 . The case of ( 6 , 6 ) (6,6) has been discussed at the very beginning, and therefore is ruled out as well. From the congruences 2 A + R + 1 E 2A+R+1 \equiv E and S + 1 E S+1 \equiv E , we obtain 2 A + R S 2A+R \equiv S . Now, let's suppose that R 1 = 3 R_1=3 . From the congruence 2 A + R S 2A+R \equiv S , we can deduce that S = 7 S=7 and E = 8 E=8 , but this is an impossibility since already, Y = 8 Y=8 . Suppose now that R 1 = 5 R_1=5 , then from the congruence again, we get S = 9 S=9 and E = 0 E=0 , clearly an impossibility.

Therefore, all that is left for possible values of Y Y and A A are Y 1 = 7 , A 1 = 3 Y_1=7, A_1=3 and Y 2 = 9 , A 2 = 1 Y_2=9, A_2=1 . Now, finally that is some progress!

Now, note that R 1 37 + R 2 19 = 1256 \overline{R_{1}37} + \overline{R_{2}19} = 1256 , or R 1 + R 2 = 12 R_1+R_2=12 . The possible values for ( R 1 , R 2 ) (R_1,R_2) in ordered pairs are ( 3 , 9 ) , ( 4 , 8 ) , ( 5 , 7 ) , ( 6 , 6 ) , ( 7 , 5 ) , ( 8 , 4 ) , ( 9 , 3 ) (3,9),(4,8),(5,7),(6,6),(7,5),(8,4),(9,3) . We can immediately spot the deal breakers ( 3 , 9 ) (3,9) and ( 7 , 5 ) (7,5) . (Why?)

To eliminate the option ( 4 , 8 ) (4,8) , we focus on the values of R 2 R_2 and A 2 A_2 . Note that R 2 = 8 R_2=8 and A 2 = 1 A_2=1 , and from the congruence 2 A + R S 2A+R \equiv S , S = 0 S=0 , which we know is impossible.

To eliminate the option ( 5 , 7 ) (5,7) , note that R 2 = 7 R_2=7 and A 2 = 1 A_2=1 forces S 2 = 9 S_2=9 . However, 9 9 is already represented by Y 2 Y_2 .

To eliminate the option ( 6 , 6 ) (6,6) , note that R 2 = 6 R_2=6 and A 2 = 1 A_2=1 forces S 2 = 8 S_2=8 and E 2 = 9 E_2=9 . However, this is a contradiction since 9 9 is already represented by Y 2 Y_2 .

Now, we are left with 2 2 options of ( Y 1 , A 1 , E 1 , S 1 , R 1 , Y 2 , A 2 , E 2 , S 2 , R 2 ) (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 ) (7,3,6,5,9,9,1,6,5,3) and ( 7 , 3 , 5 , 4 , 8 , 9 , 1 , 7 , 6 , 4 ) (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 ) (Y_1,A_1,E_1,S_1,R_1) and attempt to complete the cryptogram.

C H 3 9 + 9 3 7 + 5 3 U 9 3 6 M B 6 9 \begin{array}{c}&&C&H&3&9 \\ +\quad &&9&3&7\\ + \quad 5&3&U&9&3\\ \hline \qquad 6&M&B&6&9 \end{array}

Now, the available digits are 0 , 1 , 2 , 4 , 8 0,1,2,4,8 . Note that there is a carry over of 1 1 from the second column to the first column. In order for this to be possible C C must equal 8 8 . (Why?)

Now, notice that there is a carry over of 1 1 from the fourth column to the third column. This implies that H + U B H+U \equiv B , which we must satisfy using 0 , 1 , 2 , 4 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 ) (Y_1,A_1,E_1,S_1,R_1) and attempt to complete the cryptogram first.

C H 3 8 + 8 3 7 + 4 3 U 8 3 5 M B 5 8 \begin{array}{c}&&C&H&3&8 \\ +\quad &&8&3&7\\ + \quad 4&3&U&8&3\\ \hline \qquad 5&M&B&5&8 \end{array}

The unused digits are 0 , 1 , 2 , 6 , 9 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 C=6 or C = 9 C=9 .

Suppose that C = 9 C=9 , then M = 2 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 1 from the fourth column to the third column, implying the equality 9 + H + U = B 9+H+U=B (no carry over, remember!). However, it is now pretty obvious that this is impossible.

Therefore, C = 6 C=6 . If we attempt to complete the congruence 9 + H + U B 9+H+U \equiv B using only the values 0 , 1 , 2 , 9 0,1,2,9 , the only possible combinations are ( H , U , B ) = ( 0 , 2 , 1 ) , ( 2 , 9 , 0 ) (H,U,B)=(0,2,1),(2,9,0) and another pair where H H and U U interchange. For the first option, note that M = 9 M=9 . This cannot be true since there is a carry over of 1 1 from the third column. For the second option, note that M = 1 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 ) (Y,A,E,S,R)=(9,1,7,6,4) is as below:

C H 1 4 + 4 1 9 + 6 1 U 4 1 7 M B 7 4 \begin{array}{c}&&C&H&1&4 \\ +\quad &&4&1&9\\ + \quad 6&1&U&4&1\\ \hline \qquad 7&M&B&7&4 \end{array}

The unused digits are 0 , 2 , 3 , 5 , 8 0,2,3,5,8 . Note that in order for a carry over of 1 1 from the second column to the first column to be possible, C = 8 C=8 . Now we attempt to complete the congruence 4 + H + U B 4+H+U \equiv B using the values of 0 , 2 , 3 , 5 0,2,3,5 . We find only two possibilities, that is ( H , U , B ) = ( 5 , 3 , 2 ) , ( 3 , 5 , 2 ) (H,U,B)=(5,3,2), (3,5,2) . This also implies that M = 0 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 4 possible values of C H A R \overline{CHAR} is 8314 + 8514 + 6238 + 6938 = 30004 8314+8514+6238+6938=\boxed{30004} .


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.

Moderator note:

Ideally, the solution should be independent of the sum of RAY. Your analysis up to that point is good, and we just have to continue with (a lot of) case checking.

FYI Since you're using array for the latex, you could make the addition sign into it's own column. This will remove the need for \quad in the last row, which makes the first digit misaligned. I've edited the latex at the top.

Calvin Lin Staff - 5 years, 5 months ago

Log in to reply

Ah, I see. Thanks for the edit!

ZK LIn - 5 years, 5 months ago

This needs an upvote. Great Solution!

Soumava Pal - 5 years, 3 months ago

Log in to reply

Thanks! I hope you enjoyed solving it as much as I enjoyed creating this problem. :)

ZK LIn - 5 years, 3 months ago

Log in to reply

Absolutely. :)

Soumava Pal - 5 years, 3 months ago

To your totally unrelated note:

There is 16 solutions available to the cryptogram above, which are:

7529+928+32192=40649

7129+928+32592=40649

5249+946+74194=80389

5149+946+74294=80389

6938+837+43283=51058

6238+837+43983=51058

9835+537+13653=24025

9635+537+13853=24025

8514+419+61341=70274

8314+419+61541=70274

5174+473+87047=92694

5074+473+87147=92694

5843+346+14734=20923

5743+346+14834=20923

6532+237+83423=90192

6432+237+83523=90192

Here's the website that helps me with this enormous amount of solutions (of course I do your question by hand ;)) : Cryptarithmetic Puzzle Solver

Trung Đặng Đoàn Đức - 5 years, 2 months ago

Log in to reply

Cool! That's what I have been looking for a long time, never thought such a great website exists. Thanks, it will come in handy whenever I want to deign new cryptogram problems.

ZK LIn - 5 years, 2 months ago

Log in to reply

There are many on Google, just wander around and pick one of them ;)

Trung Đặng Đoàn Đức - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...