The digits , , , , and can be used, each exactly once, to form many five-digit integers. Of these integers, is the one that is as close as possible to 30 000. What is the tens digit of ?
Problem 287
Pick one
Official solution
We find the smallest such integer greater than 30 000 and the largest such integer less than 30 000 and then determine which is closest to 30 000.
Let be the smallest integer greater than 30 000 that is formed using the digits 2, 3, 5, 7, and 8, each exactly once.
Since is greater than 30 000, its ten thousands digit is at least 3.
To make as small as possible (but greater than 30 000), we set its ten thousands digit to 3.
To make as small as possible, its thousands digit should be as small as possible, and thus equals 2.
Continuing in this way, its hundreds, tens and ones digits are 578. Thus, .
Let be the largest integer less than 30 000 that is formed using the digits 2, 3, 5, 7, and 8, each exactly once.
Since is less than 30 000, its ten thousands digit is less than 3 and must thus be 2.
To make as large as possible (but less than 30 000), its thousands digit should be as large as possible, and thus equals 8.
Continuing in this way, its hundreds, tens and ones digits are 7, 5 and 3, respectively. Thus, .
Since and , then is closer to 30 000.
Thus, . The tens digit of is 5.