The number of digits you have to type to write all the page numbers of a book starting from I (first page) is 2019. What is the number of pages in that book?
709
The problem asks us to find the total number of pages in a book, given that the total number of digits used to write all page numbers, starting from page 1, is 2019.
Let's break down the number of digits required based on the number of digits in the page numbers:
We will calculate the digits used for each range of pages until we exhaust the total number of digits (2019).
Pages 1 to 9 are the 1-digit numbers. The number of pages is $9 - 1 + 1 = 9$. Total digits used for these pages = $9 \text{ pages} \times 1 \text{ digit/page} = 9$ digits.
Remaining digits = $2019 - 9 = 2010$ digits.
Pages 10 to 99 are the 2-digit numbers. The number of pages is $99 - 10 + 1 = 90$. Total digits used for these pages = $90 \text{ pages} \times 2 \text{ digits/page} = 180$ digits.
Remaining digits = $2010 - 180 = 1830$ digits.
After accounting for 1-digit and 2-digit pages, we have 1830 digits remaining. These digits must be used for 3-digit or higher page numbers. 3-digit page numbers start from 100. Each 3-digit page number uses 3 digits.
Number of 3-digit pages that can be numbered with the remaining digits = $\frac{\text{Remaining digits}}{\text{Digits per page}} = \frac{1830}{3} = 610$ pages.
So, there are 610 pages that are 3-digit numbers. These pages start from page 100.
The last 3-digit page number is calculated by adding the number of 3-digit pages (610) to the first 3-digit page number (100) and subtracting 1 (because 100 is included in the count): Last 3-digit page number = $100 + 610 - 1 = 709$.
The book has gone through all 1-digit pages (1-9), all 2-digit pages (10-99), and the first 610 of the 3-digit pages (100-709).
Total number of pages = (Number of 1-digit pages) + (Number of 2-digit pages) + (Number of 3-digit pages) Total number of pages = $9 + 90 + 610 = 709$ pages.
Let's verify the total number of digits used for 709 pages:
Total digits = $9 + 180 + 1830 = 2019$ digits.
This matches the total number of digits given in the question.
Therefore, the total number of pages in the book is 709.
Two fair dice are thrown. The number of cases where the number appearing on the upper face of the first die is not less than that on the lower face of the second die is
The number of Hens, Ducks, and Goats in farm P are 65, 91 and 169, respectively. The total number of Hens, Ducks and Goats in a nearby farm Q is 416. The ratio of hens : ducks : goats in farm Q is 5 : 14 : 13. All the hens, ducks and goats are sent from farm Q to farm P.
The new ratio of hens : ducks : goats in farm P is ____________.
A person divided an amount of Rs. 100,000 into two parts and invested in two different schemes. In one he got 10% profit and in the other he got 12%. If the profit percentages are interchanged with these investments he would have got Rs.120 less. Find the ratio between his investments in the two schemes.
S, M, E and F are working in shifts in a team to finish a project. M works with twice the efficiency of others but for half as many days as E worked. S and M have 6 hour shifts in a day, whereas E and F have 12 hours shifts. What is the ratio of contribution of M to contribution of E in the project?
M and N start from the same location. M travels 10 km East and then 10 km North – East. N travels 5 km South and then 4 km South – East. What is the shortest distance (in km) between M and N at the end of their travel?