What is the mathematical approach to solving letter/digit code puzzles?

In summary: Most of the time the questions are created with a solution in mind. But there are some that are not and are just for fun.
  • #1
t_n_p
595
0

Homework Statement



I was flicking through the newspaper the other day and noticed there is a type of puzzle where words are added together to form a sum.

Each letter represents one of the digits 0-9,

for example:

FUN
+JOKE
=HAHA

and the aim of the puzzle is to find which letters correspond to which digits

I was just wondering if there is any mathematical basis to solving this puzzle or whether trial and error is the only way to do these.

Cheers
 
Physics news on Phys.org
  • #2
A little algebraic short-cut would be to ignor the actual words and group the like terms.

E.g. for your example you could write: FUN + JOKE = 2H +2A

Of course this equation has more than one unknown quantity so clearly more information would (and probably was) be provided. If this is not the case then you would have to write out ABCDE..., index each with 12345... and then begin some simple manipulation of the indoexes until you get a fit to the equation given.

Hope this helps ;)
 
  • #3
DJsTeLF said:
A little algebraic short-cut would be to ignor the actual words and group the like terms.

E.g. for your example you could write: FUN + JOKE = 2H +2A

Of course this equation has more than one unknown quantity so clearly more information would (and probably was) be provided. If this is not the case then you would have to write out ABCDE..., index each with 12345... and then begin some simple manipulation of the indoexes until you get a fit to the equation given.

Hope this helps ;)

fyi, you cannot write FUN + JOKE = 2H +2A.

The letters merely are a direct substitute for the numbers. For example if H = 1, A = 2 then HAHA = 1212 ≠ 2(1) + 2(2) = 6.

No further information is provided, hence why I am asking if there is a better way than trial and error.
 
  • #4
t_n_p said:
The letters merely are a direct substitute for the numbers. For example if H = 1, A = 2 then HAHA = 1212 ≠ 2(1) + 2(2) = 6.

Oops, so it is (not). Point conceeded, I believe my second point still stands though..
 
  • #5
well I figured it out,

FUN = 741
JOKE = 8652
HAHA = 9393

But my original question still stands, trial and error or is there a better way!
 
  • #6
Assuming decimal system

1000J + 100(F+O) + 10(U+K) + N + E = 1010H + 101A

There is additional information that all unknowns are small integers. Not every question of this type has a solution, not every question has a unique solution. It can be solved by brute force, I am not aware of any faster general method. Sometimes it is possible to get some specific information from simple logical analysis - for example, assuming each letter is assigned different digit, it is obvious that H=J+1.
 
  • #7
Borek said:
Assuming decimal system

1000J + 100(F+O) + 10(U+K) + N + E = 1010H + 101A

There is additional information that all unknowns are small integers. Not every question of this type has a solution, not every question has a unique solution. It can be solved by brute force, I am not aware of any faster general method. Sometimes it is possible to get some specific information from simple logical analysis - for example, assuming each letter is assigned different digit, it is obvious that H=J+1.

Ah this bold part does help a little bit. But you mentioned not every question of this type has a solution. Why do you say that? These sorts of questions get published in newspaper back pages alongside soduku and crossword, so I would be hoping they have solutions! Nevertheless I do understand that in some cases there may be more than 1 solution as you have pointed out.

Also yes, I did recognise the H=J+1, which makes things slightly easier but I think so far from the replies I've received the general concencus is that brute force trial and error is the best (and only?) way to do these questions.
 
  • #8
t_n_p said:
But you mentioned not every question of this type has a solution. Why do you say that? These sorts of questions get published in newspaper back pages alongside soduku and crossword, so I would be hoping they have solutions!

Those published should have solutions, but it doesn't mean you can write something random and assume it can be solved - IT+IS+NOT<>POSSIBLE.
 
  • #9
^^^

yes of course I am aware of this.
 

1. What is a letters/digits code puzzle?

A letters/digits code puzzle is a type of brain teaser where a code or message is hidden within a set of letters and numbers. The goal is to decipher the code and reveal the hidden message.

2. How do you solve a letters/digits code puzzle?

The first step in solving a letters/digits code puzzle is to carefully examine the given set of letters and numbers. Look for any patterns or recurring symbols that may indicate the code. Then, try to substitute the letters and numbers with different combinations until a message begins to form.

3. Are there any specific techniques or strategies for solving letters/digits code puzzles?

Yes, there are a few techniques that can be helpful when solving letters/digits code puzzles. Some common strategies include looking for similar patterns or symbols, using frequency analysis to determine the most common letters or numbers, and trying to identify any known codes or ciphers that may be used.

4. Are there any online tools or resources that can help with solving letters/digits code puzzles?

Yes, there are many websites and apps that offer tools and resources for solving letters/digits code puzzles. These may include code decryption programs, code breaking forums, and online code generators.

5. What are some real-world applications of letters/digits code puzzles?

Letters/digits code puzzles can be used in a variety of real-world scenarios, such as cryptography, data encryption, and even in escape rooms or puzzle games. They can also be used as a fun and challenging way to exercise the brain and improve critical thinking skills.

Similar threads

  • Programming and Computer Science
2
Replies
37
Views
3K
Replies
8
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
771
  • General Math
Replies
5
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
272
  • Programming and Computer Science
Replies
6
Views
2K
  • Programming and Computer Science
Replies
29
Views
3K
  • General Discussion
Replies
1
Views
4K
  • Math Proof Training and Practice
2
Replies
67
Views
10K
  • Biology and Medical
Replies
1
Views
6K
Back
Top