Go back
Nine

Nine

Posers and Puzzles

Vote Up
Vote Down

What percentage of integers contain the digit 9 (at least once)?


Assuming you don't use leading zeroes, the chances that a given integer has a '9' in it is:

1 - (8/9)(9/10)^n

Where 'n' is the length of the integer in digits.

I guess you might take the limit of that as 'n' approaches infinity? But that would make it very close to "all of them" I think

Vote Up
Vote Down

What about this?

https://www.wolframalpha.com/input/?i=summation+from+n%3D1+to+infinity+of+%28%281-%288%2F9%29%289%2F10%29%5En%29%2F%2810%5En%29%29

Vote Up
Vote Down

Originally posted by forkedknight
Assuming you don't use leading zeroes, the chances that a given integer has a '9' in it is:

1 - (8/9)(9/10)^n

Where 'n' is the length of the integer in digits.

I guess you might take the limit of that as 'n' approaches infinity? But that would make it very close to "all of them" I think
Yes.
100% of the integers have at least one occurrence of the digit "9".

😀

Vote Up
Vote Down

Originally posted by forkedknight
Assuming you don't use leading zeroes, the chances that a given integer has a '9' in it is:

1 - (8/9)(9/10)^n

Where 'n' is the length of the integer in digits.

I guess you might take the limit of that as 'n' approaches infinity? But that would make it very close to "all of them" I think
If N = 1

1 - (8/9)(9/10) = 1 - (8/10) = 1/5

One fifth of all the one digit integers is not 9. Fail formula.

1 edit
Vote Up
Vote Down

Originally posted by AThousandYoung
If N = 1

1 - (8/9)(9/10) = 1 - (8/10) = 1/5

One fifth of all the one digit integers is not 9. Fail formula.
Sorry, I guess it's an off-by-one error:

p = 1 - (8/9)(9/10)^(n-1)

Vote Up
Vote Down

Originally posted by wolfgang59
Yes.
100% of the integers have at least one occurrence of the digit "9".

😀
Do you say that all integers has at least one nine? Then I can give you a counterexample - 8.

2 edits
Vote Up
Vote Down

All, except for an infinite number of them

Vote Up
Vote Down

But - and this is not a joke:

Among all integers there are exactly as many numbers with a nine in them as they are numbers without a nine in them. No approximately but exactly! Not as n reach infinity, but when n *is* infinity!

This is provable. Cantor showed us how.

Vote Up
Vote Down

Originally posted by FabianFnas
But - and this is not a joke:

Among all integers there are exactly as many numbers with a nine in them as they are numbers without a nine in them. No approximately but exactly! Not as n reach infinity, but when n *is* infinity!

This is provable. Cantor showed us how.
Cantor cant count.

Vote Up
Vote Down

Originally posted by FabianFnas
But - and this is not a joke:

Among all integers there are exactly as many numbers with a nine in them as they are numbers without a nine in them. No approximately but exactly! Not as n reach infinity, but when n *is* infinity!

This is provable. Cantor showed us how.
Well the the answer should be 50%, and I don't think that's true...

Vote Up
Vote Down

Originally posted by forkedknight
Well the the answer should be 50%, and I don't think that's true...
The number of all integers is infinitely many.
How much is 50% of infinity?

Vote Up
Vote Down

Originally posted by FabianFnas
How much is 50% of infinity?
A half.

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.