A 3-digit padlock code follows these rules: The sum of all three digits is 17. The third digit is twice the first digit. The second digit is 2 greater than the third digit. What is the code?
386
Let the digits be A, B, and C. C = 2A and B = C + 2 = 2A + 2. The sum A + B + C = A + (2A + 2) + 2A = 5A + 2 = 17. Solving 5A + 2 = 17 gives 5A = 15, so A = 3. Then C = 6 and B = 8. The code is 386.
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: Hard. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
The more you give me away, the more I grow. What am I?
Look at this sequence of numbers: 8, 5, 4, 9, 1, 7, 6, 10, 3, 2. By what hidden rule are these numbers ordered?
Four people—W, X, Y, and Z—live on different floors of a four-story building (1st to 4th). W lives on a higher floor than X. Y lives on a lower floor than Z. X lives on a higher floor than Z. List the residents from the 1st floor up to the 4th floor.
A thief steals a pocket watch and hides it inside one of three identical wooden boxes labeled A, B, and C. On Box A it says: 'The watch is in this box.' On Box B it says: 'The watch is not in this box.' On Box C it says: 'The watch is not in Box A.' Exactly one of these statements is true. Which box contains the watch?
Five friends line up for a ride at the fair, and the sign lists only these facts. Felix stands ahead of Mara. Gwen stands ahead of Nico. Mara stands ahead of Gwen. Nico stands ahead of Kira. Who stands first in line?
In a futuristic city, three robots—Alpha, Beta, and Gamma—made statements about who committed a minor software glitch. Alpha said: 'Beta did it.' Beta said: 'Gamma did it.' Gamma said: 'Beta is lying.' Exactly one robot is telling the truth. Who committed the glitch?

