Browse · MathNet
PrintIMO Team Selection Contest
Estonia number theory
Problem
We call a positive integer whose all digits are distinct bright, if either is a one-digit number or there exists a divisor of which can be obtained by omitting one digit of and which is bright itself. Find the largest bright positive integer. (We assume that numbers do not start with zero.)
Solution
First, we show by induction on the length of that if is bright, then is bright as well. Assume that for one digit shorter numbers the statement holds. If after deleting we obtain a bright divisor, the statement holds trivially. If the bright divisor of is obtained after deleting some other digit, then in the end of this divisor we still have , i.e., it can be written as . By the induction hypothesis, is bright. But then after deleting from the corresponding digit, we get a bright divisor , which means that also is bright.
Next we show that any bright divisor of at least two-digit bright number not ending with can be obtained by deleting the first or the second digit.
Let now be a 5-digit bright number not ending with and let be its bright divisor. We consider two cases depending on which digit is deleted to obtain .
1) If is obtained by deleting the first digit of , then , where is the deleted digit. As does not end with , it is not divisible either by or . If is not divisible by , then , contradiction. Hence is odd and . Since is four-digit not ending with zero, it must divide one of the numbers , , , . We may leave out , because in this case the first digit of must be , but the last digit is as well. The four-digit divisors of the remaining numbers are , , , . The first and the last number contain equal digits, from the other two numbers we cannot obtain a divisor by deleting the first or the second digit.
2) If a bright divisor is obtained by deleting the second digit, then , where is at most two-digit. Since does not end with , it is not divisible either by or , implying that is divisible either by or by . Since and start with the same digit , we have , implying that can be only or , in both cases . We can write , where . If , or equivalently , then . Since starts with and , we get yielding . This gives , and , which is not bright. If , or equivalently , then . Since starts with , we get , yielding , i.e., . Leaving out numbers with repeated digits, we get . Among these numbers only is bright, deleting the first or the second digit from other candidates does not give a divisor. A check shows that is bright as well.
Therefore is the only 5-digit bright number not ending with . Let now be arbitrary 6-digit bright number. If ends with , then deleting we obtain a 5-digit bright number not containing , whence . If is not ending with , then after deleting the first or the second digit we obtain a bright divisor not ending with . Thus , yielding , where is at most 2-digit. Since and are co-prime, this is not possible. Consequently, is the only 6-digit bright number. If was a bright 7-digit number, then by deleting its some digit we would obtain . Then also should end with , which means that is a bright 6-digit number not containing . But there are no such numbers. Since there exist no 7-digit bright numbers, there cannot be longer bright numbers either.
Next we show that any bright divisor of at least two-digit bright number not ending with can be obtained by deleting the first or the second digit.
Let now be a 5-digit bright number not ending with and let be its bright divisor. We consider two cases depending on which digit is deleted to obtain .
1) If is obtained by deleting the first digit of , then , where is the deleted digit. As does not end with , it is not divisible either by or . If is not divisible by , then , contradiction. Hence is odd and . Since is four-digit not ending with zero, it must divide one of the numbers , , , . We may leave out , because in this case the first digit of must be , but the last digit is as well. The four-digit divisors of the remaining numbers are , , , . The first and the last number contain equal digits, from the other two numbers we cannot obtain a divisor by deleting the first or the second digit.
2) If a bright divisor is obtained by deleting the second digit, then , where is at most two-digit. Since does not end with , it is not divisible either by or , implying that is divisible either by or by . Since and start with the same digit , we have , implying that can be only or , in both cases . We can write , where . If , or equivalently , then . Since starts with and , we get yielding . This gives , and , which is not bright. If , or equivalently , then . Since starts with , we get , yielding , i.e., . Leaving out numbers with repeated digits, we get . Among these numbers only is bright, deleting the first or the second digit from other candidates does not give a divisor. A check shows that is bright as well.
Therefore is the only 5-digit bright number not ending with . Let now be arbitrary 6-digit bright number. If ends with , then deleting we obtain a 5-digit bright number not containing , whence . If is not ending with , then after deleting the first or the second digit we obtain a bright divisor not ending with . Thus , yielding , where is at most 2-digit. Since and are co-prime, this is not possible. Consequently, is the only 6-digit bright number. If was a bright 7-digit number, then by deleting its some digit we would obtain . Then also should end with , which means that is a bright 6-digit number not containing . But there are no such numbers. Since there exist no 7-digit bright numbers, there cannot be longer bright numbers either.
Final answer
146250
Techniques
Greatest common divisors (gcd)Factorization techniquesOther