Key rule: Ten’s place must be 5 and all digits must be different.
Write the 5-digit pattern:
\( \_\;\_\;\_\;5\;\_ \)
Greatest number
- Use the largest possible unused digits on the left, from big to small.
- Available digits (except 5): \(0,1,2,3,4,6,7,8,9\).
- Ten-thousands: choose \(9\).
- Thousands: choose \(8\).
- Hundreds: choose \(7\).
- Ten’s is fixed: \(5\).
- Units: next largest unused is \(6\).
Number: \(98756\).
Smallest number
- Use the smallest possible unused digits, but the first digit cannot be \(0\).
- Available digits (except 5): \(0,1,2,3,4,6,7,8,9\).
- Ten-thousands: choose smallest non-zero \(1\).
- Thousands: now we can use \(0\).
- Hundreds: next smallest unused is \(2\).
- Ten’s is fixed: \(5\).
- Units: next smallest unused is \(3\).
Number: \(10253\).
Checks
- Ten’s place is \(5\) in both numbers.
- All digits are different in both numbers.