A book has pages numbered from 1 to 100. How many total pages contain the digit '7' at least once?
19
Count the pages with a 7 in the units place (7, 17, 27, 37, 47, 57, 67, 77, 87, 97 -> 10 pages) and the tens place (70, 71, 72, 73, 74, 75, 76, 77, 78, 79 -> 10 pages). Page 77 is counted in both lists, so subtract 1. Total: 10 + 10 - 1 = 19 pages.
About this riddle
Logic riddles give you a few facts and ask what must be true. List what you know, cross out what cannot be, and see what is left.
Difficulty: Medium. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
If 3 cats can catch 3 mice in 3 minutes, how many cats are needed to catch 100 mice in 100 minutes?
Four statues—Bronze, Silver, Gold, and Platinum—stand in a hall. Exactly one contains a hidden key. The Bronze statue says: 'The key is in Gold.' The Silver statue says: 'The key is not in me.' The Gold statue says: 'The key is in Platinum.' The Platinum statue says: 'Gold is lying.' If exactly one statement is true, which statue holds the key?
Five people are standing in a line to buy ice cream. Alice is neither first nor last. Bob is standing somewhere behind Charlie. David is standing directly behind Alice. Emily is standing first in line. What is the exact order of the line from front to back?
I am orange and round with a carved face, and a candle gives me a glow. What am I?
A woodworker has a single straight beam of timber 10 meters long. He wants to cut it into 10 equal 1-meter segments. How many straight cuts must he make?
In a secret underground laboratory, every scientist is either a geneticist or a physicist, but never both. There are twice as many geneticists as physicists. If there are 33 scientists in total working in the laboratory, how many physicists are there?

