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

Home > Numbers
How many 1s? (Posted on 2004-07-26) Difficulty: 2 of 5
If I took all the numbers from one to one billion:
  1. How many of them contain at least one '1'?
  2. If I wrote them out in one long line, how many 1 digits would there be?

See The Solution Submitted by Thalamus    
Rating: 3.0000 (12 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: The solution?? | Comment 6 of 16 |
(In reply to The solution?? by Vee-Liem Veefessional)

for part 1, it's definitely not 20,000,000,000.  For example, from 1 to 1,000, there are 272 numbers that contain at least one 1's.

I agree with the rest of the people's solutions..

I got the following formula for part 1:
for any positive integer n, there are
10ⁿ(1-.9ⁿ)+1
numbers from 1 to 10ⁿ that contains at least one digit of 1.

i hope i am doing this right.. o_O"

  Posted by saddi Sandy on 2004-07-30 08:01:03

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


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

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information