Acertijos de Mileto42 a riddle every day · the solution, the next day Versión en español

2026-11-04 · Logic / Math

The Number That Turns Around

Marta writes a four-digit number in her notebook. Neither its first nor its last digit is zero. She then multiplies it by 4 and, to her surprise, finds that the result is exactly the same number written backwards.

For example, if the number were 1234, multiplying it by 4 would have to give 4321 (which it doesn't; this is just to show what «backwards» means).

What number did Marta write?

See solution

The number is 2178, since 2178 × 4 = 8712.

Call the number ABCD and its reverse DCBA. Because 4 × ABCD still has four digits, ABCD is below 2500, so A is 1 or 2. But DCBA is the result of multiplying by 4, so it is even, which means A (its last digit) is even: A = 2. Then 4 × ABCD lies between 8000 and 9999, so D is 8 or 9. Also, 4 × D must end in 2 (the digit A), which only happens for D = 8 (4 × 8 = 32).

Now write the equation: 4 × (2000 + 100B + 10C + 8) = 8000 + 100C + 10B + 2. Expanding: 8000 + 400B + 40C + 32 = 8000 + 100C + 10B + 2, that is, 390B − 60C + 30 = 0, which simplifies to 13B + 1 = 2C. Since C is at most 9, 13B + 1 ≤ 18, so B can only be 0 or 1. With B = 0 we would get 2C = 1, which is impossible. With B = 1 we get C = 7. Hence the only possible number is 2178.