Willy is a Dumby

Mr. Siddique asks his 1st grade class (containing Willy and David) to create a six-digit string of 0's and 1's such that there is at least one string of two consecutive 1's. For example, the numbers 111110 111110 and 010110 010110 fulfill this requirement, however, 010101 010101 does not.

However, though their task isn't too hard, Willy and David are dumbies, so they randomly write six 0's or 1's.

Mr. Siddique will be very mad if neither Willy nor David completes this simple task, and will retire from his teaching job and travel to Bangladesh to see one of the greatest countries in the world. However, this is bad because Willy and David love Mr. Siddique and if he leaves, Willy and David will cry.

What is the probability that Willy and David will cry because Mr. Siddique leaves to go to Bangladesh?

The answer can be expressed as a b \frac{a}{b} , where a a and b b are positive integers and are relatively prime to each other. Find the sum a + b a+b .


The answer is 4537.

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.

1 solution

Edward Rong
Jun 13, 2014

Let E n E_{n} denote the number of n-digit strings composed of 0's and 1's such that there is at least one string of two consecutive 1's.

If the last digit of the string is a 0, then there must be at least one string of two consecutive 1's in the previous n 1 n-1 digits, and hence the number of possibilities in this case is E n 1 E_{n-1}

If the last digit of the string is a 1, the ( n 1 n-1 )th digit can either be a 1 or a 0.

If the ( n 1 n-1 )th digit is a 0, we can see that there must be at least one string of two consecutive 1's in the previous n 2 n-2 digits, and hence the number of possibilities in this case is E n 2 E_{n-2}

If the ( n 1 n-1 )th digit is a 1, we can see that we already have a string of two consecutive 1's in the nth and ( n 1 n-1 )th digit, and so it does not matter what the preceding n 2 n-2 digits are. The number of possibilities in this case is 2 n 2 2^{n-2}

In this way, we can obtain a recursive formula: E n = E n 1 + E n 2 + 2 n 2 E_{n}=E_{n-1}+E_{n-2}+2^{n-2}

We can work out that E 2 = 1 E_{2}=1 as the only possibility is 11. The next term to calculate is E 3 = 3 E_{3}=3 as there are three possibilities: 011, 110, and 111.

Using the recursive formula, we can work out E 4 = E 3 + E 2 + 2 2 = 3 + 1 + 4 = 8 E_{4}=E_{3}+E_{2}+2^{2}=3+1+4=8

Similarly, E 5 = E 4 + E 3 + 2 3 = 8 + 3 + 8 = 19 E_{5}=E_{4}+E_{3}+2^{3}=8+3+8=19

Finally, E 6 = E 5 + E 4 + 2 4 = 19 + 8 + 16 = 43 E_{6}=E_{5}+E_{4}+2^{4}=19+8+16=43

The total number of six-digit strings of 0's and 1's such that there is at least one string of two consecutive 1's is 2 6 = 64 2^{6}=64 , since there is a choice between 1 or 0 for each digit.

The probability that someone is unable to do the task is 64 43 64 = 21 64 \large\frac{64-43}{64}=\frac{21}{64}

The probability that both of them are unable do the task is ( 21 64 ) 2 = 441 4096 \large(\frac{21}{64})^{2}=\frac{441}{4096}

Therefore, a + b = 441 + 4096 = 4537 \large a+b=441+4096=4537

First thing we get is that if their are 2 0s or less,then,there would definitely be consecutive 1s.
So we look at 6 zeros :that is one case
5 zeros 1 one:that will be 6 cases
4 zeros 2 ones:that will be 10 cases when two consecutive 1s aren't present.(15(total number of cases)-5)
3 zeros and 3 ones:only two cases:010101,,,,,,,,,,101010.


Now,total number of cases is 64. Those not containing two consecutive 1s,1+6+10+2=19. Thus,answer should be 19^2/64^2.What is wrong with this? @William Cui @Caleb Townsend @Calvin Lin

satyendra kumar - 6 years, 3 months ago

Log in to reply

You missed two cases! When there are three zeros and three ones, there's also 100101 and 101001. Hence there are 21 strings with no consecutive ones, out of 64.

Caleb Townsend - 6 years, 3 months ago

Log in to reply

Thanks for helping!

Calvin Lin Staff - 6 years, 2 months ago

@Yash Singhal @Sandeep Bhardwaj care to help?

Adarsh Kumar - 6 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...