349.A Seven Somewhere
★★★combinatoricsOptiver
An integer is chosen uniformly at random from 1 to 1,000,000 inclusive. What is the probability that the digit 7 appears at least once in it?
Sign in to submit an answer and track it toward your stats.
Sign inHint
Count the numbers with no 7 at all. Padding to a fixed width with leading zeros makes each digit position independent.
Want timed drills, mental math, and a market-making game too? Try the full practice suite →