Puzzles and Mini-Challenges

The Remainder Lock: Can You Find the Number?

A lock opens for one whole number from 1 to 50: divide it by 3 and the remainder is 2; divide it by 4 and the remainder is 3; divide it by 5 and the remainder is 2. The number is 47, but the satisfying part is not the reveal—it is seeing how three small conditions narrow the field to one answer.

Try the lock before reading on

Write down the integers from 1 through 50 that leave a remainder of 2 when divided by 3. From that shorter list, keep only the numbers that also leave a remainder of 2 when divided by 5. Finally, test the survivors against the division-by-4 condition: the remainder must be 3.

Pause here if you want to solve it unaided. A useful habit is to record not just a candidate, but the division that verifies it. “47 works” is a claim; “47 = 3 × 15 + 2” is evidence.

Your challenge: Which number from 1 to 50 satisfies all three conditions? Try listing, testing, or looking for a pattern. Each route can work; the best one is the route you can explain.

A quick check opens it

The first and third clues share the same remainder. A number that leaves 2 after division by 3 and by 5 is 2 more than a multiple of both 3 and 5. Because 3 and 5 have no common factor other than 1, their shared multiples repeat every 15. The numbers of that form from 1 to 50 are:

  • 2 = 0 × 15 + 2
  • 17 = 1 × 15 + 2
  • 32 = 2 × 15 + 2
  • 47 = 3 × 15 + 2

Now test those four against division by 4. The remainders are 2, 1, 0, and 3 respectively. Only 47 satisfies the middle clue.

Check the answer directly: 47 = 3 × 15 + 2, 47 = 4 × 11 + 3, and 47 = 5 × 9 + 2. The quotients change, but the remainders match the lock’s three instructions. The answer is not a guess that happens to fit; it has been verified against every condition.

Why the list jumps by 15

Listing candidates is more than a trial-and-error trick. It uses a repeat pattern. If a number has remainder 2 on division by 3, it can be written as 3a + 2, where a is a whole number. If it also has remainder 2 on division by 5, it can be written as 5b + 2. Subtract 2: what remains must be divisible by both 3 and 5.

The smallest positive number divisible by both is 15, so the shared multiples are 0, 15, 30, 45, and so on. Add 2 to each and the possible numbers become 2, 17, 32, 47, 62, and onward. Within the lock’s range, 62 is too large, leaving exactly four candidates to test.

This is a modest but important improvement over checking all 50 integers. Two clues have already done most of the work before the third clue enters. Number sense often looks like this: notice a structure, use it to reduce the search, and then check the remaining possibilities carefully.

The modular-arithmetic version

Mathematicians use the phrase congruence modulo to describe numbers with the same remainder after division by a given number. The first clue can be written as x ≡ 2 (mod 3); the second as x ≡ 3 (mod 4); and the third as x ≡ 2 (mod 5). Read “mod 5,” for example, as “when compared by their remainders on division by 5.”

The first and third statements combine neatly: x ≡ 2 (mod 15). That shorthand means x is 2 more than a multiple of 15. So the original puzzle becomes a smaller question: among the numbers 2, 17, 32, and 47, which has remainder 3 modulo 4? The answer is 47.

There is a further check on how often the full pattern repeats. The divisors are 3, 4, and 5. Their least common multiple is 60, so adding 60 to any solution preserves all three remainders. For example, 107 is 60 more than 47 and also fits: its remainders on division by 3, 4, and 5 are 2, 3, and 2. In fact, the full set of integer solutions is 47 + 60k, where k is any integer.

The range restriction matters. There are infinitely many integers following that repeating pattern, but only 47 lies between 1 and 50. A remainder puzzle therefore has two layers: find the repeating pattern, then apply the stated range.

Three ways to solve one puzzle

1. List the candidates

Start with numbers that leave remainder 2 when divided by 3: 2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, and 50. From this list, keep numbers that leave remainder 2 when divided by 5: 2, 17, 32, and 47. The final test selects 47. This method is transparent and useful when the range is small.

2. Combine the matching remainders

Recognize that the number is 2 more than a multiple of both 3 and 5. Their shared step size is 15, so write down 2, 17, 32, and 47. This method cuts out most of the initial list and makes the pattern visible.

3. Build from the middle condition

A remainder of 3 on division by 4 means the number is one less than a multiple of 4: 3, 7, 11, 15, and so on. Test these numbers against the other two clues. The candidates in range that satisfy the division-by-4 clue include 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, and 47; among them, only 47 leaves remainder 2 on division by both 3 and 5.

Different starting points can lead to the same answer. Comparing methods helps reveal which clue is most useful to apply first. Here, combining the two matching remainders produces the shortest candidate list.

Mini-challenge: a different lock

Keep the same three divisors, but change the clues. Find a number from 1 to 60 that leaves remainder 1 when divided by 3, remainder 2 when divided by 4, and remainder 4 when divided by 5.

First combine the division-by-3 and division-by-5 clues. A number with remainders 1 and 4 is one more than a multiple of 3 and one less than a multiple of 5. Candidates from 1 to 60 that satisfy both are 4, 19, 34, and 49. Check them modulo 4: their remainders are 0, 3, 2, and 1. The lock opens at 34.

Verify it by division: 34 = 3 × 11 + 1, 34 = 4 × 8 + 2, and 34 = 5 × 6 + 4. As before, the arithmetic check is a compact proof. It confirms each clue without relying on a hunch.

Mini-challenge: when a clue is impossible

Here is a deliberate trap: find an integer that leaves remainder 1 when divided by 4 and remainder 2 when divided by 6. Try a few candidates before reading the explanation.

No such integer exists. A number that leaves remainder 1 on division by 4 is odd: it has the form 4a + 1. A number that leaves remainder 2 on division by 6 is even: it has the form 6b + 2. No integer can be both odd and even. The clues contradict each other, so there is no solution at all—not even outside a stated range.

That is a useful distinction. Sometimes a puzzle has one answer in its range; sometimes it has several; sometimes the conditions are incompatible. A careful solver checks whether a solution exists before spending time searching for it.

What makes remainder puzzles useful?

Remainders describe what is left after equal groups are made. That everyday idea reaches into questions of cycles, scheduling, and digital information. A seven-day week repeats after 7 days; if today is Monday, 10 days later is Thursday because 10 leaves remainder 3 on division by 7. The remainder tells you how far to move around the cycle.

In the lock puzzle, the cycle lengths are 3, 4, and 5. Each condition repeats as numbers increase, and the combined pattern returns after 60 because 60 is divisible by all three. This is why a number can be checked with small calculations even when it belongs to a much larger sequence. The same reasoning supports modular arithmetic used in computer science and elementary cryptography, though real cryptographic systems rely on more substantial mathematics than a three-clue puzzle.

For learners, the value is concrete. You can see the cycle, list its members, test a candidate, and explain why the pattern repeats. No advanced notation is required, but the notation provides a compact language when you are ready for it.

A reliable solving routine

  1. Translate each clue. “Remainder 2 when divided by 5” means the number is 2 more than a multiple of 5.
  2. Look for shared structure. Clues with the same remainder, such as the division-by-3 and division-by-5 clues here, can often be combined.
  3. Find the repeat interval. Use the least common multiple of the relevant divisors. For 3 and 5, it is 15; for 3, 4, and 5 together, it is 60.
  4. Respect the range. A pattern may continue forever, while the puzzle asks for an answer only between two bounds.
  5. Verify every condition. Divide the proposed answer by each stated divisor and confirm each remainder separately.

This routine prevents a common mistake: finding a number that fits two clues and stopping there. A lock with three conditions requires three checks. In the original puzzle, 32 passes the division-by-3 and division-by-5 tests, but it divides evenly by 4. It fails the middle clue, so it does not open the lock.

The answer, stated plainly

The number is 47. It can be written as 45 + 2, 44 + 3, and 45 + 2 again: that gives the required remainders for division by 3, 4, and 5. Among the four candidates generated by the matching remainder clues—2, 17, 32, and 47—it is the only one that survives the final test.

The next time a puzzle gives you several remainder conditions, resist the urge to scan every integer. Translate the clues into repeating patterns, combine what can be combined, and let the range do the rest. The lock looks complicated only until its cycles line up.

Quick summary: The conditions are x ≡ 2 (mod 3), x ≡ 3 (mod 4), and x ≡ 2 (mod 5). The first and third reduce the candidates to 2, 17, 32, and 47; only 47 has remainder 3 on division by 4.

Theme