A lock requires a four-digit code. The third digit is double the first. The second digit is the sum of the first and third. The fourth digit is one less than the second digit. The sum of all four digits is 26. What is the code?
3968
Let the first digit be X. The third digit is 2X, the second digit is X + 2X = 3X, and the fourth digit is 3X - 1. Summing all four gives X + 3X + 2X + (3X - 1) = 9X - 1 = 26. Solving for X yields X = 3. Substituting X = 3 gives digits 3, 9, 6, and 8.
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 clock tower takes 6 seconds to strike 4 o'clock (striking 4 times with equal intervals between strikes). How many seconds will it take to strike 8 o'clock?
Two mothers and two daughters went shopping together. They bought exactly three hats, and each person wore one home without sharing or carrying extras. How is this possible?
A mother is currently twice as old as her daughter. 10 years ago, the mother was three times as old as her daughter. How old is the daughter today?
Four distinct positive integers—A, B, C, and D—are listed in strictly increasing order (A < B < C < D). Their product (A × B × C × D) is 120 and their sum (A + B + C + D) is 14. What are the four numbers?
In a race of four runners, Anna finished two spots ahead of Ben. Chloe finished directly behind Dave. Dave finished one spot behind Anna. In what exact position did Ben finish?
I am sung door to door at Christmas, and I have many verses. What am I?

