Crack the Code: A Puzzle Challenge!

  • Context:
  • Thread starter Thread starter Farmtalk
  • Start date Start date
  • Tags Tags
    Code Puzzle
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Farmtalk
Messages
30
Reaction score
0
I posted this on my website a couple days ago. I like puzzles a lot, so I figured I would share it here and see how many people could figure it out; enjoy!;)
A man wanted to get into his work building, but he had forgotten his code. However, he did remember five clues. These are what those clues were:

The fifth number plus the third number equals fourteen.

The fourth number is one more than the second number.

The first number is one less than twice the second number.

The second number plus the third number equals ten.

The sum of all five numbers is 30.

What were the five numbers and in what order?
 
Mathematics news on Phys.org
Hello, Farmtalk!

A man wanted to get into his work building, but he had forgotten his code.
However, he did remember five clues. These are what those clues were:

[1] The fifth number plus the third number equals fourteen.

[2] The fourth number is one more than the second number.

[3] The first number is one less than twice the second number.

[4] The second number plus the third number equals ten.

[5] The sum of all five numbers is 30.

What were the five numbers and in what order?
Let [tex]a,b,c,d,e[/tex] . . be the five numbers, in that order.We are given:

. . [tex][1] \;e+c \,=\,14[/tex]

. . [tex][2]\;d \,=\,b+1[/tex]

. . [tex][3]\;a \,=\,2b-1[/tex]

. . [tex][4]\;b+c \:=\:10[/tex]

. . [tex][5]\;a+b+c+d+e \,=\,30[/tex]From [5], we have: .[tex]a + b + d + (e+c) \:=\:30[/tex]

Since [tex]e+c\,=\,14[/tex] . , we have: .[tex]a+b+d+14 \:=\:30[/tex]
. . Hence: .[tex]a+b+d \:=\:16[/tex]

Substitute [3] and [2]: .[tex](2b-1) + b+ (b+1) \:=\:16[/tex]

. . [tex]4b \:=\:16 \quad\Rightarrow\quad b \,=\,4[/tex]Substitute into [3]: .[tex]a \:=\:2b-1 \quad\Rightarrow\quad a \,=\,7[/tex]

Substitute into [4]: .[tex]c \:=\:10-b \quad\Rightarrow\quad c \,=\,6[/tex]

Substitute into [2]: .[tex]d \:=\:b+1 \quad\Rightarrow\quad d \,=\,5[/tex]

Substitute into [3]: .[tex]e \:=\:14-c \quad\Rightarrow\quad e \,=\,8[/tex]Therefore, the code is [tex]74658.[/tex]
 
That's the number I got! CORRECT! ;)