Question

Difficulty: HardBasic Single-Event Probability

A computer program randomly selects a single positive integer xx from the set {1,2,3,,300}\{1, 2, 3, \dots, 300\}, where each integer has an equal probability of being chosen. What is the probability that xx is divisible by either 6 or 9, but not by 4?

Answer: 0.14

Answer

The probability that xx is divisible by 6 or 9, but not by 4, is 0.140.14 (or 750\frac{7}{50}).
To calculate the probability, determine the ratio of favorable outcomes to total outcomes (300). First, count integers divisible by 6 (50) or 9 (33). Subtracting the 16 multiples of 18 counted in both yields 67 integers. Next, identify how many of these 67 integers are divisible by 4: there are 25 multiples of 12 and 8 multiples of 36 (all 8 of which are already included in the multiples of 12), resulting in 25 integers divisible by 4. Subtracting 25 from 67 leaves 42 favorable integers. The probability is 42/300=0.1442 / 300 = 0.14.

Step-by-Step Solution

1
Determine the total sample space size.
The total number of equally likely outcomes is S=300|S| = 300.
Single-event probability requires dividing the count of favorable outcomes by the total number of outcomes in the set.
2
Calculate the count of integers divisible by 6 or 9.
Count = 50+3316=6750 + 33 - 16 = 67.
Apply the Principle of Inclusion-Exclusion: sum the multiples of 6 and 9, then subtract the multiples of lcm(6,9)=18\text{lcm}(6, 9) = 18 to eliminate double counting.
3
Exclude integers from this set that are divisible by 4.
Count of multiples of 4 to exclude = 25+88=2525 + 8 - 8 = 25.
Integers divisible by both 6 and 4 are multiples of lcm(6,4)=12\text{lcm}(6, 4) = 12. Integers divisible by both 9 and 4 are multiples of lcm(9,4)=36\text{lcm}(9, 4) = 36. Using inclusion-exclusion, 25+88=2525 + 8 - 8 = 25 integers must be excluded.
4
Find the number of favorable outcomes and compute the probability.
Favorable outcomes E=6725=42|E| = 67 - 25 = 42. Probability P(E)=42300=0.14P(E) = \frac{42}{300} = 0.14.
Divide the favorable set size by the total sample space size.

Key Concept

Basic Single-Event Probability with Set Inclusion-Exclusion and Number Properties
Rate this question