Probability is Almost One Third

Select two distinct positive integers (without order) between 1 and 29 inclusive. If the probability that their sum is divisible by 3 can be represented in the form a b \dfrac{a}{b} where a a and b b are coprime positive integers, compute a + b . a+b.


The answer is 271.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Grant Bulaong
Jun 7, 2016

The conditions for x + y x+y to be divisible by 3 3 are;

(A) either x x and y y leave remainders of 1 1 and 2 2 or vice versa when divided by 3 3 or

(B) both x x and y y are divisible by 3 3 .

Between 1 and 29 inclusive, there are ten which leave a remainder of 1, ten which leave a remainder of 2 and nine which leave a remainder of 3 when divided by 3. So our probability is ( 10 1 ) ( 10 1 ) + ( 9 2 ) ( 29 2 ) = 68 203 \dfrac{\dbinom{10}{1}\dbinom{10}{1}+\dbinom{9}{2}}{\dbinom{29}{2}}=\dfrac{68}{203} Hence a + b = 68 + 203 = 271 a+b=68+203=\boxed{271} .

I used modular arithmetic, but pretty much the same solution

Did you notice that 68 203 \frac{68}{203} is MORE than a third?

Peter Macgregor - 5 years ago

Log in to reply

"Almost" is referring to, in this context, that the probability is close to one-third, not necessarily that is a smidgen under one-third. (Where, as you pointed out, it is actually more than one-third.)

Log in to reply

Ah, point taken!

Peter Macgregor - 5 years ago
Rohit Sachdeva
Jun 11, 2016

We have 3 types of nos: 3k, 3k+1 and 3k+2

From 1-29, there are 9 nos. of 3k types and 10 each of 3k+1 & 3k+2 type.

For sum of 2 nos. to be divisible by 3, either we should add 2 nos. of 3k types or 1 each of 3k+1 & 3k+2 type.

First can be done in 9 C 2 ^{9}C_{2} ways.

Second can be done in 10 C 1 ^{10}C_{1} x 10 C 1 ^{10}C_{1} ways.

Total number of ways to select 2 nos. out of 29 is 29 C 2 ^{29}C_{2}

The desired probability is 36 + 100 406 = 68 203 \frac{36+100}{406} = \frac{68}{203} .

So a+b = 271

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...