To determine the monkeys' chances of typing the opening sentence of The Hobbit randomly, let’s break the problem into smaller steps.
Step 1: Total possible combinations
The opening sentence is 45 characters long, and each character can be one of 48 possible keys. The total number of possible combinations of 45 keystrokes is:
4845. This equals approximately 5.27 × 1075.
Step 2: Probability of success in one attempt
The probability of typing the correct sequence in one attempt is the reciprocal of the total number of combinations:
1/4845, or approximately 1.9 × 10-76.
Step 3: Total attempts by the monkeys
Each monkey can make 1017 attempts, and there are 6 monkeys. Therefore, the total number of attempts is:
6 × 1017
Step 4: Probability of failure in one attempt
The probability of failing to type the correct sequence in one attempt is:
1 - (1.9 × 10-76), which is approximately 1 since the success probability is so tiny.
Step 5: Probability of failing all attempts
If the probability of failure in one attempt is very close to 1, the probability of failure across all attempts is calculated as:
(Probability of failing in one attempt) raised to the power of the total number of attempts.
This equals (1 - 1.9 × 10-76) raised to the power of 6 × 1017.
For practical purposes, this is still approximately 1 because even after 6 × 1017 attempts, the probability of success remains extremely small.
Step 6: Probability of at least one success
The probability of at least one success is:
1 - (Probability of failing all attempts).
Since the probability of failing all attempts is effectively 1, the probability of success is effectively 0.
Conclusion
Despite the 6 monkeys making 1017 attempts each, the chances of them randomly typing the opening sentence of The Hobbit are astronomically low—essentially zero. The vast number of possible combinations, 5.27 × 1075, far exceeds the number of attempts they can make.