Skip to content
Official PYQ · 2014

GATE CS 2014 Set 2 Q48 — Probability: Random Variables and Distributions

Explain with AI
The probability that a given positive integer lying between 11 and 100100 (both inclusive) is NOT divisible by 22, 33 or 55 is ______ .
View worked solution

Answer: 0.259 : 0.261

Let the sample space be S={1,2,3,…,100}S = \{1, 2, 3, \dots, 100\}. The total number of elements is ∣S∣=100|S| = 100.

We want to find the probability that a randomly chosen integer from SS is not divisible by 22, 33, or 55.

Let us define the following sets of integers in SS:

  • AA: Divisible by 22
  • BB: Divisible by 33
  • CC: Divisible by 55

Using the Principle of Inclusion-Exclusion (PIE), the number of integers divisible by at least one of 22, 33, or 55 is given by:

∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−(∣A∩B∣+∣B∩C∣+∣C∩A∣)+∣A∩B∩C∣|A \cup B \cup C| = |A| + |B| + |C| - (|A \cap B| + |B \cap C| + |C \cap A|) + |A \cap B \cap C|

Let's calculate each term:

  • ∣A∣=⌊1002⌋=50|A| = \lfloor \frac{100}{2} \rfloor = 50
  • ∣B∣=⌊1003⌋=33|B| = \lfloor \frac{100}{3} \rfloor = 33
  • ∣C∣=⌊1005⌋=20|C| = \lfloor \frac{100}{5} \rfloor = 20
  • ∣A∩B∣|A \cap B| (divisible by lcm(2,3)=6\text{lcm}(2,3) = 6): ⌊1006⌋=16\lfloor \frac{100}{6} \rfloor = 16
  • ∣B∩C∣|B \cap C| (divisible by lcm(3,5)=15\text{lcm}(3,5) = 15): ⌊10015⌋=6\lfloor \frac{100}{15} \rfloor = 6
  • ∣C∩A∣|C \cap A| (divisible by lcm(5,2)=10\text{lcm}(5,2) = 10): ⌊10010⌋=10\lfloor \frac{100}{10} \rfloor = 10
  • ∣A∩B∩C∣|A \cap B \cap C| (divisible by lcm(2,3,5)=30\text{lcm}(2,3,5) = 30): ⌊10030⌋=3\lfloor \frac{100}{30} \rfloor = 3

Substituting these values into the PIE formula:

∣A∪B∪C∣=50+33+20−(16+6+10)+3|A \cup B \cup C| = 50 + 33 + 20 - (16 + 6 + 10) + 3 ∣A∪B∪C∣=103−32+3=74|A \cup B \cup C| = 103 - 32 + 3 = 74

The number of integers in SS that are not divisible by 22, 33, or 55 is:

∣Ac∩Bc∩Cc∣=∣S∣−∣A∪B∪C∣=100−74=26|A^c \cap B^c \cap C^c| = |S| - |A \cup B \cup C| = 100 - 74 = 26

Thus, the required probability is:

P=26100=0.26P = \frac{26}{100} = 0.26

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Probability: Random Variables and Distributions questions