Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What happens to the infinite monkey theorem when there are an infinite number of keys on the typewriter? So what is the probability of a finite string of keys like the works of Shakespeare being typed up. Thanks for any insights.

share|cite|improve this question
What is the cardinality of the set of monkeys? The set of keys? – Potato May 26 '13 at 1:40
up vote 8 down vote accepted

You need to pick a probability distribution over the keys. If the number of keys is at most countable and each key occurs with positive probability, then the infinite monkey theorem continues to hold and the proof is the same (any finite string only uses finitely many keys so you can ignore the rest). If one of the keys occurs with probability zero and it also occurs in your string, then the string occurs with probability zero.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.