Knowee
Questions
Features
Study Tools

Edward is making a book. He writes the page number on each page, starting with page number 1 (1, 2, 3, 4, ...). He will stop as soon as he writes a total of 999 digits. What will be the last page number he writes?

Question

Edward is making a book. He writes the page number on each page, starting with page number 1 (1, 2, 3, 4, ...). He will stop as soon as he writes a total of 999 digits. What will be the last page number he writes?

🧐 Not the exact question you are looking for?Go ask a question

Solution

To solve this problem, we need to consider how many digits each page number has:

  1. Pages 1-9: Each of these pages has only 1 digit, so that's 9 digits in total.
  2. Pages 10-99: Each of these pages has 2 digits, so that's 90 pages * 2 digits = 180 digits.
  3. Pages 100-999: Each of these pages has 3 digits, so that's 900 pages * 3 digits = 2700 digits.

However, Edward only needs to write 999 digits. He will finish writing all the digits for the pages 1-9 and 10-99, which is 9 + 180 = 189 digits.

This means he still needs to write 999 - 189 = 810 digits. Since each page number from 100 to 999 has 3 digits, he will write 810 / 3 = 270 page numbers from this range.

The last page number he writes will therefore be 99 (the last page number from the 10-99 range) + 270 = 369.

This problem has been solved

Similar Questions

The total number of digits used to number a 200 page book is:

A teacher asks the class to open their books to a page number. A student can either start turning pages from the front of the book or from the back of the book. They always turn pages one at a time. When they open the book, page is always on the right side:When they flip page , they see pages and . Each page except the last page will always be printed on both sides. The last page may only be printed on the front, given the length of the book. If the book is pages long, and a student wants to turn to page , what is the minimum number of pages to turn? They can start at the beginning or the end of the book.Given and , find and print the minimum number of pages that must be turned in order to arrive at page .ExampleUsing the diagram above, if the student wants to get to page , they open the book to page , flip page and they are on the correct page. If they open the book to the last page, page , they turn page and are at the correct page. Return .Function DescriptionComplete the pageCount function in the editor below.pageCount has the following parameter(s):int n: the number of pages in the bookint p: the page number to turn toReturnsint: the minimum number of pages to turnInput FormatThe first line contains an integer , the number of pages in the book.The second line contains an integer, , the page to turn to.ConstraintsSample Input 062Sample Output 01Explanation 0If the student starts turning from page , they only need to turn page:If a student starts turning from page , they need to turn pages:Return the minimum value, .Sample Input 154Sample Output 10Explanation 1If the student starts turning from page , they need to turn pages:If they start turning from page , they do not need to turn any pages:Return the minimum value, .

How many digits are used to number a book containing 300 pages.Options :694792698784

In a book, the page numbers are given in form a, b, b, c, c, c,….find the alphabet written on the 100th page of the book. N

The number of digits used to number the pages of a book is twice the number of  pages of the book. If the number of pages of the book is a three-digit number, how many pages does the book have?

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.