A detective finds a vault secured by a four-digit code. The second digit is twice the first. The third digit is three times the first. The fourth digit is the sum of the second and third digits. If none of the digits are zero, what is the code?
1235
Let the first digit be x. The second digit is 2x, the third is 3x, and the fourth is 2x + 3x = 5x. Because all digits must be single non-zero integers (1 through 9), x must equal 1. Thus, 2x = 2, 3x = 3, and 5x = 5, yielding the code 1235.
About this riddle
Logic riddles give you a few facts and ask what must be true. List what you know, cross out what cannot be, and see what is left.
Difficulty: Medium. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
A farmer has 4 bags of seed labeled W, X, Y, and Z. Bag W is heavier than Bag X. Bag Y is lighter than Bag Z. Bag X is heavier than Bag Z. Which bag is the lightest?
Consider the number sequence: 3, 5, 9, 17, 33, ... What is the next number in this logic sequence?
You have five coins: three are genuine gold coins of equal weight, and two are lighter counterfeit coins of equal weight. Using a balance scale just once, how can you guarantee identifying at least one genuine gold coin?
A master thief leaves a note at a crime scene containing four numbers: 3, 5, 4, and 2. The detective looks at the numbers and immediately states the next number in the sequence is 11. What is the secret rule behind this sequence?
A line goes: clock, calendar, clock, calendar, clock. What comes next?
A king wishes to test three wise advisors to see who is the sharpest. He places a colored hat on each of their heads, telling them that each hat is either blue or red, and that at least one hat is red. Each advisor can see the hats of the other two, but not their own. The king asks Advisor A, 'Do you know the color of your hat?' A replies, 'No.' The king then asks Advisor B, who also says, 'No.' Hearing this, Advisor C immediately states the exact color of his own hat without looking in a mirror. What color is Advisor C's hat, and how did he know?

