m Red socks and n Blue socks ( m > n ) in a Cupboard are well mixed up
Ifwhere, m + n ≤ 1 0 1 .
If two socks are taken out at random,
The chance that they have same colour is 2 1 .
Then Find largest value of m .
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.
Excellent Solution.+1
Since the probability that they have the same color is 0 . 5 , the probability that they have different colors is also 0 . 5 . But this probability is simple: ( 2 m + n ) m n . Thus,
( 2 m + n ) m n = 2 1
2 m n = 2 ( m + n ) ( m + n − 1 )
4 m n = ( m + n ) 2 − ( m + n )
m + n = ( m + n ) 2 − 4 m n = ( m − n ) 2
Now let m − n = k , so m + n = k 2 . Thus m = 2 k 2 + k . For k ≥ 0 , this function is increasing, so maximizing m is equal to maximizing k .
But k = m + n is also increasing in m + n , so maximizing k is also maximizing m + n .
Since m + n ≤ 1 0 1 and must be a perfect square (so that k is an integer), we have max m + n = 1 0 0 , so k = 1 0 and m = 2 1 0 2 + 1 0 = 5 5 .
Better solution
Problem Loading...
Note Loading...
Set Loading...
We have that n + m m ∗ n + m − 1 m − 1 + n + m n ∗ n + m − 1 n − 1 = 2 1
⟹ 2 ( m 2 − m + n 2 − n ) = ( n + m ) ( n + m − 1 ) = n 2 + 2 m n + m 2 − n − m
⟹ m 2 − m + n 2 − n = 2 m n .
Now let n = m − k for some integer k > 0 . Then our equation becomes
m 2 − m + ( m − k ) 2 − ( m − k ) = 2 m ( m − k )
⟹ m 2 − m + m 2 − 2 m k + k 2 − m + k = 2 m 2 − 2 m k
⟹ k 2 + k − 2 m = 0 ⟹ 2 m = k ( k + 1 )
Now we require that
m + n = m + ( m − k ) = 2 m − k = k ( k + 1 ) − k = k 2 ≤ 1 0 1 .
Since k is a positive integer, the maximum value of k is 1 0 , giving us
2 m − 1 0 = 1 0 0 ⟹ m = 5 5 as the maximum value of m .