5. A two-digit number is written on the board. Nезнayka claimed that it is divisible by . Upon hearing this, Znayka saddened Nезнayka by saying that he was wrong exactly 4 times. What number could have been written on the board? List all possible options.
Problem 823
Official solution
Answer: 36, 45 or 72.
Solution. Let be the two-digit number written on the board. If were divisible by 30, it would also be divisible by , so Neznaika would have made no more than 3 mistakes, a contradiction. If were not divisible by 3, it would also not be divisible by , so Neznaika would have made at least 5 mistakes, a contradiction. Therefore, is divisible by 3 but not by 30. It follows immediately that is not divisible by 10. Thus, among the statements about divisibility by , exactly three are true. A number that is divisible by 3 cannot be divisible by both 4 and 5 at the same time (otherwise it would also be divisible by 30). Therefore, among the statements about divisibility by 9, 15, 18, at least two are true. If were not divisible by 9, it would also not be divisible by 18, a contradiction. Therefore, is divisible by 9. In addition, is divisible by 15 or 18. Let's consider two cases.
- Suppose is divisible by 15. Since it is also divisible by 9, it is either 45 or 90. But cannot be 90 because is not divisible by 30. However, can be 45 (since 45 is divisible by 3, 5, 9, 15 and not divisible by ).
- Suppose is not divisible by 15. Then it is divisible by 18, and it is either 18, 36, 54, 72, or 90. Again, cannot be 90 because is not divisible by 30. Also, cannot be 18 or 54 (since both 18 and 54 are divisible by and both are not divisible by ). However, can be 36 or 72 (since both 36 and 72 are divisible by and both are not divisible by ).
In total, we have three possible options: 36, 45, and 72.