A vault requires a four-digit numerical code. The first digit is double the last digit. The second digit is three less than the first digit. The third digit is the sum of the first and second digits. If the last digit is 2, what is the code?
4152
Last digit = 2. First digit is double the last (2 * 2 = 4). Second digit is three less than the first (4 - 3 = 1). Third digit is the sum of the first and second (4 + 1 = 5). Putting them in order gives 4, 1, 5, 2.
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: Easy. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
There are three colored boxes: Red, Green, and Blue. Exactly one box contains a prize. The Red box states: 'The prize is in here.' The Green box states: 'The prize is not in the Red box.' The Blue box states: 'The prize is not in here.' If exactly ONE statement is true, which box contains the prize?
Four books are stacked vertically. The Red book is directly above the Blue book. The Green book is somewhere beneath the Yellow book. The Blue book is directly above the Green book. What is the order of the books from top to bottom?
Four travelers checked into an inn at different times. Arthur arrived before Bella. Charlie checked in after Dan, but right before Arthur. Who arrived last of all?
A man looks at a portrait on the wall and says, 'Brothers and sisters I have none, but that man's father is my father's son.' Who is in the portrait?
Four passengers (W, X, Y, Z) enter an elevator on the ground floor. Two people exit on Floor 2, one person exits on Floor 3, and one person exits on Floor 4. W exits on an earlier floor than X. Y exits on the same floor as Z. On which floor does X exit?
A architect designs a house where every exterior wall faces south. A bear wanders past one of the windows. What color is the bear?

