Question
Question: If number of seven digit numbers in which first four digits are in ascending order, last four digits...
If number of seven digit numbers in which first four digits are in ascending order, last four digits are in descending order and middle digit is a perfect square of natural number, is λ, then digit at the tens place of λ is

0
1
2
3
0
Solution
Let the seven-digit number be d1d2d3d4d5d6d7.
The digits d1,d2,…,d7 are from the set {0,1,2,3,4,5,6,7,8,9}. Since it is a seven-digit number, the first digit d1 cannot be 0. So d1∈{1,2,…,9}.
The first four digits are in ascending order: d1<d2<d3<d4. Since d1≥1, all the first four digits d1,d2,d3,d4 must be non-zero. Thus, 1≤d1<d2<d3<d4. This implies that d1,d2,d3 must be distinct digits greater than or equal to 1 and less than d4. The smallest possible values for d1,d2,d3 are 1, 2, 3. Thus, d4 must be at least 4.
The last four digits are in descending order: d4>d5>d6>d7. This implies that d4,d5,d6,d7 must be distinct. The digits d5,d6,d7 must be distinct digits less than d4. The digits can include 0. The smallest possible distinct values for d5,d6,d7 are 0, 1, 2. Thus, d4 must be at least 3.
The middle digit is d4. It is given that d4 is a perfect square of a natural number. Natural numbers are 1,2,3,…. Their squares are 12=1,22=4,32=9,42=16,…. Since d4 is a single digit, d4 must be from {0,1,…,9}. So, d4 must be 1, 4, or 9.
Combining the conditions on d4:
- d4≥4 (from d1<d2<d3<d4 and d1≥1).
- d4≥3 (from d4>d5>d6>d7).
- d4∈{1,4,9}.
From these conditions, the possible values for d4 are 4 and 9.
Case 1: d4=4. The first four digits: d1<d2<d3<4. Since d1≥1, the digits d1,d2,d3 must be chosen from {1,2,3}. There is only (33)=1 way to choose these three distinct digits, which are {1,2,3}. Since they must be in ascending order, (d1,d2,d3)=(1,2,3). So the first four digits are (1, 2, 3, 4). The last four digits: 4>d5>d6>d7. The digits d5,d6,d7 must be chosen from {0,1,2,3}. There are (34)=4 ways to choose three distinct digits from this set. Once chosen, there is only one way to arrange them in descending order. So, for d4=4, the number of possible seven-digit numbers is 1×(34)=1×4=4.
Case 2: d4=9. The first four digits: d1<d2<d3<9. Since d1≥1, the digits d1,d2,d3 must be chosen from {1,2,…,8}. There are (38) ways to choose three distinct digits from this set. Once chosen, there is only one way to arrange them in ascending order. (38)=3×2×18×7×6=56. The last four digits: 9>d5>d6>d7. The digits d5,d6,d7 must be chosen from {0,1,…,8}. There are (39) ways to choose three distinct digits from this set. Once chosen, there is only one way to arrange them in descending order. (39)=3×2×19×8×7=84. So, for d4=9, the number of possible seven-digit numbers is (38)×(39)=56×84. 56×84=56×(80+4)=56×80+56×4=4480+224=4704.
The total number of such seven-digit numbers, λ, is the sum of the numbers from Case 1 and Case 2. λ=4+4704=4708.
We are asked to find the digit at the tens place of λ. λ=4708. The digits of λ are: 4 (thousands place), 7 (hundreds place), 0 (tens place), 8 (units place). The digit at the tens place of λ is 0.