JEE Previous Year Question
Number of times is the digit 5 written when listing all numbers from 1 to ?
Topic: JEE PYQ
Answer: 50000. Full step-by-step solution below.
Correct answer: 50000
Solution
(50000)We have to count the occurrences of digit 5 consider integers t such that 0 ≤ t ≤
The largest number t having 5 in the units place is 99995.So there are
1 + 9999 = 104 numbers t having 5 in the units place
The are 5, 15, 25,............99995
We can describe these numbers as t = x
Where x is any one of 0, 1, 2,......9999. Similarly numbers t = x5y.
ie.e., numbers having 5 in the ten's place are in all (1 + 999) × 10 = 104 as x can be any one of 0, 1, 2,..999 and y can be anyone of 0, 1,2,.......9
In the same way, there are 104 numbers in each of the following cases: numbers with 5 in the hundreds place or thousands place or ten thousands place.
Hence, the total number of times 5 is written 104 × 5
More Permutations & Combinations PYQs
- Number of numbers of the form xxyy which are perfect squares of a natural number.
- Let < < < < be positive integers such that + + + + …
- The number of triangles whose vertices are at the vertices of a regular octagon but none of whose sides is a side of the octagon i…
- The number of ways, 5 boys and 4 girls can sit in a row so that either all the boys sit together or no two boys sit together, is
- If stands for , then…