All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Successively incident (Posted on 2011-05-18) Difficulty: 2 of 5
All the base ten positive integers are written successively, without commas or spaces, resulting in this infinite string.


Reading left to right, determine the digit following and the digit preceding the 2011th incidence of the digit 1. What is the digit following and the digit preceding the 20110th incidence of the digit 1?

See The Solution Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Hand solution Comment 2 of 2 |
I had typed this in yesterday but it got lost when I hit send.  I know better.  Always type long answers into a word processor.  Anyhow this is a shorted (still longish) version that I think still shows my reasoning.

Define [a,b]=n where n is the number of 1s on the closed interval from a to b.

First some initial results:
[0,99]=20 (2 decimal places times 10 ones in each place)



So it is the 3172 that contains the 2011th 1.  So the following and preceding digits are 7 and 3 respectively.

20110-18000=2110  which is only a bit more than the above.  The next ten thousand numbers start with a 2 so I can use some of the above results:
just need 10 more, so can just count.  It takes the next 17 numbers:

So it is the 23517 that contains the 20110th 1.  So the following and preceding digits are 7 and 5 respectively.
  Posted by Jer on 2011-05-19 10:32:02
Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2019 by Animus Pactum Consulting. All rights reserved. Privacy Information