TL;DR - bolded text
"Nagisa, look what I have got here. A dango math cryptogram!" Tomoya said, waving his smartphone excitedly at Nagisa's face.
"Um, what's a cryptogram, Tomoya?" Nagisa asked. "I have never heard about it before."
"It is a puzzle of some sort, silly. The rules are simple. Each alphabet you see here represents a number from 0 to 9. There are a few catches though." Tomoya explained.
"What are they?" Nagisa asked, tilting her head cutely in puzzlement. Tomoya suddenly experienced an inexplicable spike in his heart rate.
"Well, to throw in some fun, the four 'K's in the cryptogram represent two different pairs of numbers . Besides that, notice how the O in DAIKAZOKU is a tad bit smaller than usual ?"
"Uh-huh," Nagisa answered.
"It is actually a mischievous baby dango! It sneaked in there while I was designing the cryptogram," Tomoya exclaimed dramatically. " The little o is essentially a wildcard and can represent any number from 0 to 9, even a number already represented by another letter ."
"Aww, that's so cute, Tomoya-kun. But you don't have to invent a story just because the cryptogram won't work if that has been a regular O."
Large beads of sweat started precipitating on Tomoya's forehead.
uneasy laughter
"Well, while we are at it, let me give you some hints. The integer represented by DANGO has only 2 prime factors, one of which is 5 and another of which consists of 4 digits. Besides that, the first four letters, D, A, I, K of DAIKAZOKU forms a strictly increasing arithmetic progression ." Tomoya said.
"Umm, that's difficult. Do I get a dango plushie if I am able to solve this?" Nagisa asked.
"You still want a dango plushie that badly? I have bought you three plushies already, remember?"
"But they are too cute to resist! How do I solve this problem? It is really difficult!"
"My, my, Nagisa. You aren't any smarter than a 8th grader, are you? " teased Tomoya.
"Hey, I don't remember learning this in my 8th grade!" Nagisa said, puffing her cheeks.
Can you help Nagisa obtain the plushie by deducing which number the wildcard (little o) represents?
Dango Daikazoku 団子大家族 literally translates to "A Big Dango Family"
This problem is part of the question set Mathematics in Anime
The characters (Nagisa and Tomoya) and illustrations of dango daikazoku belong to KEY Studios (creator of CLANNAD visual novel+ anime series) and original creator of the fanart respectively. I do not, in any way, own these amazing pieces of work.
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.
D A N G O × K Z O K D A I K A Z o K U
From the hint that DANGO has a factor of 5, we can deduce that it ends either in 0 or 5. If it ends in 0, then the U of DAIKAZOKU will be 0 as well, a contradiction. So, O is 5 and U is 0.
After establishing this, since 5 is unavailable anymore, there are only 3 possible single-digit strictly increasing arithmetic progressions, namely (1,2,3,4), (6,7,8,9) and (2,4,6,8).
We can straightaway eliminate the sequence (6,7,8,9). Note that the integer represented by DANGO is a product of 5 and another 4 digit prime number, which is smaller than 9 9 9 9 × 5 = 4 9 9 9 5 . There is no way the product can be a 5 digit number starting with 6.
Now, we suppose that D,A,I,K represent 2,4,6,8. We deduce that the first K in KZOK must be 9. If not, we can never get a 9-digit product starting with 24. (Verify this by calculating the range!)
We now know that the Ks represent two pairs of 8 and 9. It is now apparent that the second K of KZOK represents 8 (for us to get 0 in unit digit after multiplication). Therefore, the second K in DAIKAZOKU represents 9. Our partially solved cryptogram now looks like this:
2 4 N G 5 × 9 Z 5 8 2 4 6 8 4 Z o 9 0
From all this information, we can deduce what G is. Note that 8 G + 4 + 2 5 ≡ 9 ( m o d 1 0 ) . The 4 comes from carry over of 8 × 5 while the 25 comes from 5 × 5 . This gives us the congruence 8 G ≡ 0 ( m o d 1 0 ) . Solving this congruence, we find that G is either 0 or 5, an impossible situation since they are already represented by O and U.
So, our original guess that D,A,I,K represents 2,4,6,8 is false. Now, suppose that D,A,I,K represents 1,2,3,4. As the reasoning before, O and U represents 5 and 0 respectively. The first K of KZOK must represent 9 (check the range yourself!) for the 9-digit product to start with 12. From this, we deduce that the second K in KZOK is 4 while the second K in DAIKAZOKU is 9. Our partially solved cryptogram looks like this:
1 2 N G 5 × 9 Z 5 4 1 2 3 4 2 Z o 9 0
Same as before, we can now solve for G. Setting up the congruence as before yields 4 G + 2 7 ≡ 9 ( m o d 1 0 ) or 4 G ≡ 2 ( m o d 1 0 ) . The only possible candidate for G is 8 (out of 6,7,8).
The remaining alphabet N and Z must represent 6 and 7. To decide, we check the prime decomposition of 12785 and 12685. Note that 1 2 7 8 5 = 5 × 2 5 5 7 , 2557 being a prime while 1 2 6 8 5 = 5 × 5 9 × 4 3 . Therefore, N represents 7 while Z represents 6.
Finally, a simple computation shows that the wild card little "o" is 3 . Q.E.D.
I had a lot of fun writing this question. I hope that you enjoy solving it as well. :)