GATE / CS ARCHIVE

GATE CSE 2014 SET 2 / QUESTION 48

GATE CSE 2014 Set 2 Q48

Discrete Mathematics · Probability & Random Variables · Full GATE CSE 2014 Set 2 paper

GATE 2014 Set 2, Q48 2 marks · NAT
Report issue

Probability & Random Variables

Question 48, GATE 2014: Choose an integer uniformly from 1 through 100 inclusive. What is the probability it is divisible by none of 2,3,5?
Tap to enlarge
Answer & solution

Official answer: 0.259 to 0.261

Our answer: 0.26

1. Set up the reasoning. Count the complement using inclusion-exclusion. Multiples of two or more divisors are counted repeatedly in the initial sum and must be corrected using their least common multiples.

2. Derive the result. Among1..100, counts divisible by 2, 3, 5 are 50, 33, 20. Pair intersections contribute 16, 10, 6 and the triple contributes 3. Their union has 50+33+20−16−10−6+3=74, leaving 26 integers. Under uniform selection the probability is 26/100=0.26, inside the official interval.

3. Check the interpretation. Use floor(100/d) for each divisor d. Subtract pair intersections for 6,10,15 and add back the triple intersection for 30, then subtract the union count from 100. The integer 1 is eligible and must not be excluded.

Original paper, page 42 · Answer key