# The Security to the Party [closed]

A party is being held at a local mansion. The host is very rich and his success is because of one thing ~ his famous recipe for Spaghetti!

The only guests that may attend are people the host knows and trusts, whom he gave the password to enter to.

Here's where you come in. You and a friend are trying to steal this recipe. You sneak by and listen to the passwords.

The first guest arrives. The security says "5", and the guest replies "5".

The second guest arrives. The security says "6", the guest replies "6".

Your friend thinks he got it all figured out. He approaches the security and as they say "7", when he replies "7" he's taken by security to the host for impersonating a guest.

Another guest arrives, you seem to get the same pattern, security says "1" and he says "1" to get in.

The final guest before you figure it out comes and says "4" in which the response is (you guessed it!) "4".

You walk up to security and get "3", what is the correct response?

• I am downvoting this question on the basis you are evaluating answers based on whether they match what you had in mind, rather than whether they work based on the information provided. I consider questions where the puzzle author is doing this to be unhealthy for the site, so I am voting accordingly. Nov 11 '14 at 7:52
• how exactly is that a valid puzzle? given the information provided, the correct answer could be anything, be it "42", "bananas" or "punch the guard in the face". Nov 11 '14 at 9:50
• Maybe I should self-answer this. Nov 11 '14 at 15:35
• are you sure the answer for 1 is 1 ? not 2 ? Nov 11 '14 at 16:18
• @njzk2 The hint seems to imply it might be; but it will make it the same puzzle as [part2]
– Kami
Nov 11 '14 at 16:20

There are many possible answers. But I will say...

In general, the last digit of $x^3$.
\begin{align}5^3 &= 125 \\ 6^3 &= 216 \\ 4^3 &= 64 \\ 7^3 &= 343 \\ 3^3 &= 27 \end{align}

From this, it is clear that we should respond:

7 (as response to 3)

3 (as response to 7)

• +1 I think this is what he was looking for because on my part 2 his first guess was 3. Nov 11 '14 at 5:48
• @skv True, well done you. I guess there's no actual reason from our perspective why one should be correct over another :p Nov 11 '14 at 7:54
• @warspyking this is a very well thought out answer, why dont you accept this, or add other numbers that will prove this wrong
– skv
Nov 11 '14 at 17:31

The formula is:

$x \mod 7$

So the answer you should give is:

$3$

• Sorry but this is incorrect. Nov 11 '14 at 2:58
• @warspyking How is it incorrect? It satisfies all the information provided in the question. I think what you meant to say there was "Sorry, that's not the answer I'm looking for." I get that you're looking for a specific answer, but for a question with as many possible answers as this one has 'incorrect' seems entirely unfair. Nov 11 '14 at 3:01
• @Miniman exactly the point of this answer, I am not proud of it either, but its so open ended that people can come up with more than one "correct" answer
– skv
Nov 11 '14 at 3:04
• Okay let me rephrase that @Miniman this does fit the other passwords however it is not the system the host used. Good try, feel free to try again :D Nov 11 '14 at 3:07
• I was considering giving this answer. Only thing I could come up with that fits. Nov 11 '14 at 4:02