Solveeit Logo

Question

Question: 3 numbers are randomly drawn from the set {1, 2, 3, ....., 300}. Find the probability that sum of th...

3 numbers are randomly drawn from the set {1, 2, 3, ....., 300}. Find the probability that sum of these 3 numbers is divisible by 3

Answer

\frac{14851}{44551}

Explanation

Solution

To find the probability that the sum of three randomly drawn numbers from the set S={1,2,3,,300}S = \{1, 2, 3, \ldots, 300\} is divisible by 3, we first categorize the numbers based on their remainder when divided by 3.

Let N0N_0 be the count of numbers in SS that are divisible by 3. Let N1N_1 be the count of numbers in SS that leave a remainder of 1 when divided by 3. Let N2N_2 be the count of numbers in SS that leave a remainder of 2 when divided by 3.

The set SS contains 300 numbers. Since 300 is perfectly divisible by 3, each remainder category will have an equal number of elements: N0={3,6,,300}N_0 = \{3, 6, \ldots, 300\}, so N0=3003=100N_0 = \frac{300}{3} = 100. N1={1,4,,298}N_1 = \{1, 4, \ldots, 298\}, so N1=29813+1=2973+1=99+1=100N_1 = \frac{298-1}{3} + 1 = \frac{297}{3} + 1 = 99 + 1 = 100. N2={2,5,,299}N_2 = \{2, 5, \ldots, 299\}, so N2=29923+1=2973+1=99+1=100N_2 = \frac{299-2}{3} + 1 = \frac{297}{3} + 1 = 99 + 1 = 100. So, we have N0=N1=N2=100N_0 = N_1 = N_2 = 100. Let k=100k=100.

The total number of ways to choose 3 numbers from 300 is given by (3003)\binom{300}{3}.

Total outcomes=(3003)=300×299×2983×2×1=50×299×298=4455100\text{Total outcomes} = \binom{300}{3} = \frac{300 \times 299 \times 298}{3 \times 2 \times 1} = 50 \times 299 \times 298 = 4455100

For the sum of three numbers (x1+x2+x3x_1 + x_2 + x_3) to be divisible by 3, the sum of their remainders when divided by 3 must be divisible by 3. Let r1,r2,r3r_1, r_2, r_3 be the remainders of x1,x2,x3x_1, x_2, x_3 respectively. We need r1+r2+r30(mod3)r_1 + r_2 + r_3 \equiv 0 \pmod{3}. The possible combinations of remainders are:

  1. All three numbers have remainder 0: (0,0,0)(0, 0, 0). Number of ways = (N03)=(1003)\binom{N_0}{3} = \binom{100}{3}.
  2. All three numbers have remainder 1: (1,1,1)(1, 1, 1). (Sum of remainders = 3) Number of ways = (N13)=(1003)\binom{N_1}{3} = \binom{100}{3}.
  3. All three numbers have remainder 2: (2,2,2)(2, 2, 2). (Sum of remainders = 6) Number of ways = (N23)=(1003)\binom{N_2}{3} = \binom{100}{3}.
  4. One number from each remainder category: (0,1,2)(0, 1, 2). (Sum of remainders = 3) Number of ways = N0×N1×N2=100×100×100=1003N_0 \times N_1 \times N_2 = 100 \times 100 \times 100 = 100^3.

Now, let's calculate the number of favorable outcomes:

(1003)=100×99×983×2×1=100×33×49=161700\binom{100}{3} = \frac{100 \times 99 \times 98}{3 \times 2 \times 1} = 100 \times 33 \times 49 = 161700 1003=1000000100^3 = 1000000

Total favorable outcomes = 3×(1003)+10033 \times \binom{100}{3} + 100^3

=3×161700+1000000=485100+1000000=1485100= 3 \times 161700 + 1000000 = 485100 + 1000000 = 1485100

The probability is the ratio of favorable outcomes to total outcomes:

P(sum is divisible by 3)=14851004455100P(\text{sum is divisible by 3}) = \frac{1485100}{4455100}

We can simplify this fraction by dividing the numerator and denominator by 100:

P(sum is divisible by 3)=1485144551P(\text{sum is divisible by 3}) = \frac{14851}{44551}

Alternatively, for the general case where N=3kN = 3k and N0=N1=N2=kN_0=N_1=N_2=k, the probability is given by:

P=3(k3)+k3(3k3)=3k(k1)(k2)6+k33k(3k1)(3k2)6P = \frac{3 \binom{k}{3} + k^3}{\binom{3k}{3}} = \frac{3 \frac{k(k-1)(k-2)}{6} + k^3}{\frac{3k(3k-1)(3k-2)}{6}}

Multiply numerator and denominator by 6:

P=k(k1)(k2)+2k3k(3k1)(3k2)=k(k23k+2)+2k3k(9k29k+2)P = \frac{k(k-1)(k-2) + 2k^3}{k(3k-1)(3k-2)} = \frac{k(k^2-3k+2) + 2k^3}{k(9k^2-9k+2)} P=k33k2+2k+2k39k39k2+2k=3k33k2+2k9k39k2+2kP = \frac{k^3-3k^2+2k + 2k^3}{9k^3-9k^2+2k} = \frac{3k^3-3k^2+2k}{9k^3-9k^2+2k}

Factor out kk from numerator and denominator:

P=k(3k23k+2)k(9k29k+2)=3k23k+29k29k+2P = \frac{k(3k^2-3k+2)}{k(9k^2-9k+2)} = \frac{3k^2-3k+2}{9k^2-9k+2}

Substitute k=100k=100: Numerator = 3(100)23(100)+2=30000300+2=297023(100)^2 - 3(100) + 2 = 30000 - 300 + 2 = 29702. Denominator = 9(100)29(100)+2=90000900+2=891029(100)^2 - 9(100) + 2 = 90000 - 900 + 2 = 89102. So, P=2970289102P = \frac{29702}{89102}. Dividing both by 2 gives 1485144551\frac{14851}{44551}.

This fraction is in its simplest form because the greatest common divisor of 14851 and 44551 is 1. (Any common factor must divide 445513×14851=14844551 - 3 \times 14851 = 148. Since 14851 is odd and not divisible by 37, there are no common factors).

The final answer is 1485144551\frac{14851}{44551}.

Explanation of the solution:

  • Categorize the 300 numbers into three groups based on their remainder when divided by 3: N0N_0 (remainder 0), N1N_1 (remainder 1), N2N_2 (remainder 2). Each group contains 100 numbers.
  • Calculate the total number of ways to choose 3 numbers from 300 using combinations: (3003)\binom{300}{3}.
  • Determine the conditions for the sum of three numbers to be divisible by 3:
    • All three numbers from N0N_0.
    • All three numbers from N1N_1.
    • All three numbers from N2N_2.
    • One number from each group (N0,N1,N2N_0, N_1, N_2).
  • Calculate the number of ways for each condition and sum them to find the total favorable outcomes.
  • Divide the total favorable outcomes by the total possible outcomes to get the probability.