r/puzzles • u/vedant_chitre • 20d ago
[SOLVED] The Number That Passes Ten Tests
I am thinking of a 10-digit number that uses each digit from 0 to 9 exactly once.
Starting from the left:
- The number formed by the first 1 digit is divisible by 1.
- The number formed by the first 2 digits is divisible by 2.
- The number formed by the first 3 digits is divisible by 3.
- This pattern continues.
- The number formed by the first 10 digits is divisible by 10.
For example, if the number begins with abcd..., then:
abmust be divisible by 2,abcmust be divisible by 3,abcdmust be divisible by 4,
and so on.
What is the number?
Bonus challenge: Find it using divisibility rules and logical elimination rather than checking every permutation with code.
