Five digit numbers are formed using the digits 1,2, 3, 5, 7 with repetitions and are written in descending order with serial numbers. For example, the number 77777 has serial number 1. Then the serial number of 35337 is ____.
Answer: 1436
Solution
There are such strings, and the serial number of in descending order is one more than the number of strings that exceed it. Comparing digit by digit, with the ranking : the first digit has above it, contributing ; after a leading , the second digit has above it, ; after , the third digit has above, ; after , the fourth digit has above, ; after , the last digit has nothing above it. So strings exceed , and its serial number is .
JEE Main · 2023 · 29 Jan 2023 · Shift 1 · Integer answer