GATE 2020 EE – Question 8
In four-digit integer numbers from 1001 to 9999, the digit group "37" (in the same sequence) appears ________ times.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) 280
Explanation
Count occurrences of the digit string 37 by its starting position.
Positions 1–2: 37 followed by any two digits gives 100 occurrences.
Positions 2–3: nine nonzero leading digits and ten final digits give 90.
Positions 3–4: nine leading digits and ten second digits give 90.
Total **100+90+90=280 occurrences, C**. The number 3737 contributes twice, once at each end. Consequently there are 279 distinct integers containing the string, but the question asks how many times the group appears.
More Quantitative Aptitude: Probability, Statistics and Combinatorics questions
All Quantitative Aptitude: Probability, Statistics and Combinatorics questions →