A Sock Problem!!

If m m Red socks and n n Blue socks ( m > n ) (m>n) in a Cupboard are well mixed up

where, m + n 101 m+n\leq 101 .

If two socks are taken out at random,

The chance that they have same colour is 1 2 \dfrac{1}{2} .

Then Find largest value of m m .


The answer is 55.

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

We have that m n + m m 1 n + m 1 + n n + m n 1 n + m 1 = 1 2 \dfrac{m}{n + m}*\dfrac{m - 1}{n + m - 1} + \dfrac{n}{n + m}*\dfrac{n - 1}{n + m - 1} = \dfrac{1}{2}

2 ( m 2 m + n 2 n ) = ( n + m ) ( n + m 1 ) = n 2 + 2 m n + m 2 n m \Longrightarrow 2(m^{2} - m + n^{2} - n) = (n + m)(n + m - 1) = n^{2} + 2mn + m^{2} - n - m

m 2 m + n 2 n = 2 m n . \Longrightarrow m^{2} - m + n^{2} - n = 2mn.

Now let n = m k n = m - k for some integer k > 0. k \gt 0. Then our equation becomes

m 2 m + ( m k ) 2 ( m k ) = 2 m ( m k ) m^{2} - m + (m - k)^{2} - (m - k) = 2m(m - k)

m 2 m + m 2 2 m k + k 2 m + k = 2 m 2 2 m k \Longrightarrow m^{2} - m + m^{2} - 2mk + k^{2} - m + k = 2m^{2} - 2mk

k 2 + k 2 m = 0 2 m = k ( k + 1 ) \Longrightarrow k^{2} + k - 2m = 0 \Longrightarrow 2m = k(k + 1)

Now we require that

m + n = m + ( m k ) = 2 m k = k ( k + 1 ) k = k 2 101. m + n = m + (m - k) = 2m - k = k(k + 1) - k = k^{2} \le 101.

Since k k is a positive integer, the maximum value of k k is 10 10 , giving us

2 m 10 = 100 m = 55 2m - 10 = 100 \Longrightarrow \boxed{m = 55} as the maximum value of m m .

Excellent Solution.+1

Vraj Mehta - 6 years, 3 months ago

Log in to reply

Thank you. Nice problem. :)

Brian Charlesworth - 6 years, 3 months ago
Ivan Koswara
Feb 19, 2015

Since the probability that they have the same color is 0.5 0.5 , the probability that they have different colors is also 0.5 0.5 . But this probability is simple: m n ( m + n 2 ) \dfrac{mn}{\binom{m+n}{2}} . Thus,

m n ( m + n 2 ) = 1 2 \dfrac{mn}{\binom{m+n}{2}} = \dfrac{1}{2}

2 m n = ( m + n ) ( m + n 1 ) 2 2mn = \dfrac{(m+n)(m+n-1)}{2}

4 m n = ( m + n ) 2 ( m + n ) 4mn = (m+n)^2 - (m+n)

m + n = ( m + n ) 2 4 m n = ( m n ) 2 m+n = (m+n)^2 - 4mn = (m-n)^2

Now let m n = k m-n = k , so m + n = k 2 m+n = k^2 . Thus m = k 2 + k 2 m = \frac{k^2+k}{2} . For k 0 k \ge 0 , this function is increasing, so maximizing m m is equal to maximizing k k .

But k = m + n k = \sqrt{m+n} is also increasing in m + n m+n , so maximizing k k is also maximizing m + n m+n .

Since m + n 101 m+n \le 101 and must be a perfect square (so that k k is an integer), we have max m + n = 100 \max m+n = 100 , so k = 10 k = 10 and m = 1 0 2 + 10 2 = 55 m = \frac{10^2+10}{2} = \boxed{55} .

Better solution

uddeshya upadhyay - 6 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...