How many numbers with 4 digits have exactly one 7 in the number?
1792
4504
2673
3274
The digit 0 cannot be placed at the first digit to make it a 4-digit number.
There are 4 possible cases:
Case 1:
There is only one option for the digit 7, and there are nine options each for the second, third, and fourth digits (0–9, with the exception of 7).
Thus,
Case 2:
With 8 options for the first position (one through nine except seven), 1 option for the second digit, 9 options for the third digit (0-9 except seven), and 9 options for the fourth digit (0-9 except seven), the digit seven is placed in second place.
Thus,
So, the number is 648.
Case 3:
With 8 options for the first position (1–9 except 7), 9 options for the second position (0–9 except 7), 1 option for the third position, and 9 options for the fourth position (0–9 except 7), the digit 7 is placed in third place.
Thus,
So, the number is 648.
Case 4:
With 8 options for the first position (1–9 except 7), 9 options for the second position (0–9 except 7), 9 options for the third position (0–9 except 7), and 1 option for the fourth position, the digit 7 is placed in fourth place.
Thus,
So, the number is 648.
Hence, the total number is given by,
Therefore, the total number is 2673.
Study 40% syllabus and score up to 100% marks in JEE