# The Security to the Party [Part 34] [duplicate]

This is an easy one - a more interesting one is in the works!

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 who correctly reply to the guard at the door.

You are trying to gatecrash the party in order to steal the recipe. You sneak by and listen to the passwords, hoping to guess the pattern.

The first guest arrives. The guard says "3". The guest replies "5" and is admitted.

The second guest arrives. The guard says "1". The guest replies "2" and is admitted.

The third guest arrives. The guard says "12". The guest replies "9" and is thrown into a tank of red herrings to be devoured.

The fourth guest arrives. The guard says "21". The guest replies "7" and is admitted.

You walk up and get a "20" from the guard. What should you say?

• I was hoping this one would involve rule 34 somehow... Nov 15, 2014 at 23:58
• hints please :D Nov 16, 2014 at 0:19
• Is the part about the red herrings just a red herring? Nov 16, 2014 at 1:10
• @HDE226868 - yes :-) Nov 16, 2014 at 11:40
• I didn't realise this was a duplicate! (I haven't actually bothered reading all the old 'Security to the Party' questions...) Should I delete the question? Nov 16, 2014 at 11:41

The logic seems to be

counting the number of segments required to show the numbers in a digital board

Going by the above logic 20 requires 2 and 0 - 5 segments needed for 2 and 6 for 0. Totalling to 11 as the answer

• Please do not post an answer where all the content is hidden in spoiler markup. Your answer should make sense and be distinguishable from another answer to a reader who cannot or chooses not to read the spoiler block. Nov 16, 2014 at 12:00
• @Gilles and hence the downvote?
– skv
Nov 16, 2014 at 12:23
• @skv - Gilles is going around downvoting everyone whose answers are spoilers :-( Nov 16, 2014 at 12:27
• Ha ha ha ... if he/she believes that improves the overall experience of the site, he/she is well within his/her rights to do so, and while the whole idea of spoiler is to avoid an accidental view of the logic and with the edit I have followed all the guidelines provided in the link he mentioned, at the end of the day this is a duplicate question (I have voted for it to be closed) so its ok I really dont feel like taking more credit on this in any case
– skv
Nov 16, 2014 at 12:31