An integer n is chosen uniformly at random from the set { 5 1 2 , 5 1 3 , … , 1 0 2 3 } . We take N , the binary expansion of n and choose 2 of the digits at random. We change each of these digits, either from 0 to 1 or from 1 to 0 , to create a new binary expansion M , which is the binary expansion for a number m . The probability that m > n can be expressed as b a , where a and b are coprime positive integers. What is the value of a + b ?
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.
Another way to set up the complementary cases when we don't select the first bit, is to take the complement :) (i.e. invert all the bits, except the first bit).
Where are the rules about this formatting given ? They were very limited in the formatting guide shown during writing solution!
Log in to reply
http://www.artofproblemsolving.com/Wiki/index.php/LaTeX:Commands
That complementary business I don't understand. Exactly why do you divide by 2 in the end?
Log in to reply
complementary means for every case in the sample space where we get a number greater than the original number there is another unique case in the sample space where we get a smaller number..therefore the probability of getting a bigger number for 512*(9C2) sample space is 1/2
Log in to reply
Well.. I think wording for this problem doesn't make sense then.. Because I solved this problem much more efficiently with the assumption that if there is 1 then make it 0 and vice a versa for each of the two digits. Then I get 5 4 . Challenge master should make me clear what is wrong with my interpretation. Edit: And why do you worry about the case where you are performing same operation on y?
Log in to reply
Because I solved this problem much more efficiently with the assumption that if there is 1 then make it 0 and vice a versa for each of the two digits.
@Shubhangi A., How is your interpretation different from the interpretation used by Sumit G, Michael T, etc?
Every element is a 10-digit binary number whose first digit is 1 , and the set contains every 10-digit binary number. Additionally, m > n iff the left digit swapped in n is 0 .
Instead of considering the questions by numbers, consider it by the digits. There are ( 2 1 0 ) = 4 5 ways to choose two digits. If one of the digits is the first, then the left digit is 1 , so n > m .
For the other 3 6 combinations, there is an equal 2 1 chance that the left most digit is a 0 or 1 .
Then the probability is 4 5 ( 3 6 ) ( 2 1 ) = 5 2 .
Great! This is similar to my approach.
Each number in the problem set is composed of 10 binary digits. Now divide the selection of the two digits into 2 cases:
Now in case 1, the first digit is always a one, so it will be changed into a 0, and the statement will be false. So we are only concerned with case 2, and it's easy to see that the probability of the statement being true given case 2 is 1/2. Multiply that by the probability of case 2 which is 4/5, and you get 2/5. So the answer is 2+5= 7 .
(9C2/2)/(9C2+9) = a/b => 2/5 = a/b
512 in binary is 1 followed by 9 zeros. 1023 is 1 followed by 9 ones. When choosing a single number from 512 to 1023, the probability of the first binary digit being 1 is 1 and the probability of it being zero is 0. For the rest of the 9 binary digits, there is equal probability of it being a zero or a 1 (so probability of it being zero is 1/2 and probability of it being a 1 is 1/2). In the second stage, we choose two of the 10 digits. If we choose the first digit and one of the other 9 digits, then m > n with probability 0 (since that never happens). If both digits are chosen from the rest of the 9 digits (excluding the most significant digit), then the probability of m > n is 1/2. The probability of choosing both digits from the 9 least significant digits is 9C2/10C2 = 8/10. So the overall probability of m > n is 8/10 * 1/2 = 2/5.
The probability that m > n is the probability that the more significant of the two digits chosen in N is equal to 0 . Let X be the position of the more significant of the two digits (so that X = 1 when the more significant digit chosen is the most significant digit in N , and X = 9 when the more significant digit chosen is the penultimate digit and the two digits chosen are the last two). Then P [ X = j ] = 4 5 1 ( 1 0 − j ) 1 ≤ j ≤ 1 0 We have conditional probabilities P [ m > n ∣ X = j ] = { 0 2 1 j = 1 2 ≤ j ≤ 9 and hence P [ m > n ] = = 2 1 ∑ j = 2 9 4 5 1 ( 1 0 − j ) = 9 0 1 ∑ j = 1 8 j 9 0 1 × 3 6 = 5 2 so that a + b = 7 .
Problem Loading...
Note Loading...
Set Loading...
The binary expansion of the given numbers has 10 digits so
The sample space is 5 1 2 ∗ ( 2 1 0 )
Consider any arbitrary number 1011110001=x assuming we are allowed to choose any 2 digits except the 1st digit we get ( 2 9 ) different 10 bit numbers some of which are greater while some are smaller.
As our list contains all these 10 bit numbers we will have a case for each of the numbers obtained above by which we can go back to x.
eg. if we choose the last 2 bits in x we get the number 1011110010=y which is greater than x. now again if we chosse the last 2 digits for y we get x which is smaller than y.
So for every case in 5 1 2 ∗ ( 2 9 ) we have a complementary case in 5 1 2 ∗ ( 2 9 )
And if we choose the 1st digit as one of the two digits then the probablity of getting a bigger no is zero since the number obtained will be a 9 digit number.
so final probablity = 1 / 2 ∗ 5 1 2 ∗ ( 2 1 0 ) 5 1 2 ∗ ( 2 9 ) = 2 / 5