Are you a typist?

Algebra Level 3

Over the course of numbering every pages in a book, a typist types 2,929 individual digits.

Can you figure out the number of pages on the book?


The answer is 1009.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

From page 1 to page 9 we need 9 digits.

From page 10 to page 99 we need ( 99 10 + 1 ) × 2 = 180 (99-10+1) \times 2=180 digits.

From page 100 to page 999 we need ( 999 100 + 1 ) × 3 = 2700 (999-100+1) \times 3= 2700 digits.

There are 2929 9 180 2700 = 40 2929-9-180-2700=40 more to number four-number pages so ( a 1000 + 1 ) × 4 = 40 ( 1 ) (a-1000+1)\times 4 = 40 (1) with a a is the final page's number.

Solve equation (1) for a = 1009 a = 1009 .

(I did many of these kinds of problem when I was in Grade 5)

Chew-Seong Cheong
Aug 14, 2020

Let the number of pages of a book be p p and the total number of digits of the page numbers be d ( p ) d(p) . Then we note that:

d ( 9 ) = 9 page 1 to 9 d ( 99 ) = 9 1 9 + 2 ( 99 9 ) 10 99 = 189 d ( 999 ) = 189 1 99 + 3 ( 999 99 ) 100 999 = 2889 d ( p ) = 2889 1 999 + 4 ( p 999 ) 1000 p = 2929 4 ( p 999 ) = 2929 2889 p = 2929 2889 4 + 999 = 1009 \begin{aligned} d(9) & = \underbrace 9_{\text{page 1 to 9}} \\ d(99) & = \underbrace 9_{1 \to 9} + \underbrace{2(99-9)}_{10 \to 99} = 189 \\ d(999) & = \underbrace{189}_{1 \to 99} + \underbrace{3(999-99)}_{100 \to 999} = 2889 \\ \implies d(p) & = \underbrace{2889}_{1 \to 999} + \underbrace{4(p-999)}_{1000 \to p} = 2929 \\ \implies 4(p-999) & = 2929 - 2889 \\ \implies p & = \frac {2929-2889}4 + 999 = \boxed{1009} \end{aligned}

Fletcher Mattox
Aug 13, 2020
1
2
3
4
5
6
s = ''
n = 1
while len(s) != 2929:
    s += str(n)
    n += 1
print(n-1)

Great job.

SRIJAN Singh - 2 weeks, 3 days ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...