Let be a set of all 4-digit natural numbers whose exactly one digit is 7. Then the probability that a randomly chosen element of leaves remainder 2 when divided by 5 is:
We need to find the set of all 4-digit natural numbers with exactly one digit equal to 7. A 4-digit number has digits where and . Exactly one of these digits is 7.
We count by considering which position has the digit 7. If : the remaining 3 digits are chosen from , giving numbers. If (or or ): is from choices, and the other two non-7 positions each have 9 choices. So each gives numbers.
Thus .
For the number to leave remainder 2 when divided by 5, the last digit must be 2 or 7 (since and ).
Case 1: (so the 7 is in the units place). Then (8 choices), (9 choices each). This gives numbers.
Case 2: (so the 7 is in one of the other three positions). Sub-case (a): , then giving numbers. Sub-case (b): , then (8 choices), (9 choices), giving . Sub-case (c): , similarly gives .
So Case 2 total = .
Total favorable = .
The probability = (dividing numerator and denominator by 9).
Therefore, the required probability is .
Tagged Probability using permutations and combinations. Machine-assigned, so read it as a strong shortlist rather than a verdict.