GATE DA 2026 · Counting (Permutations & Combinations)

MCQ · 1 mark · Problem EM-CPRB-0017

Suppose that a computer program provides a non-negative and integer-valued random solution to the equation \(n_{1}+n_{2}+n_{3}+n_{4}=20\). Which of the following is the probability that all of \(n_{1}, n_{2}, n_{3}, n_{4}\) in the provided solution are positive?
  1. A
    \(\binom{19}{3} /\binom{23}{3}\)
  2. B
    \(\binom{20}{4} /\binom{24}{4}\)
  3. C
    \(\binom{20}{3} /\binom{23}{3}\)
  4. D
    \(\binom{19}{4} /\binom{24}{4}\)

Solve it on GATE DA practice →More Combinatorics & Basic Probability problems

Show the worked solutionTotal non-negative integer solutions to \(n_1+n_2+n_3+n_4=20\) (stars and bars): \(\binom{20+4-1}{4-1}=\binom{23}{3}\)Solutions where every \(n_i\ge1\) (all positive): substitute \(m_i=n_i-1\ge0\), so \(m_1+m_2+m_3+m_4=20-4=16\), giving \(\binom{16+3}{3}=\binom{19}{3}\) such solutions.Assuming the "random solution" is chosen uniformly among all \(\binom{23}{3}\) non-negative solutions, the probability that all \(n_i\) turn out positive is:\(\dfrac{\binom{19}{3}}{\binom{23}{3}}\)Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com