Bernoulli's coin flips

Bernoulli flips a coin 15 15 times and writes down the sequence of heads (H) and tails (T) that he gets. He notices that he has 5 instances of consecutive TH, 4 instances of consecutive HT, 3 instances of consecutive HH and 2 instances of consecutive TT. How many different sequences could he have written down?

Details and assumptions

As an explicit example, if the sequence was HTTHHT, then there are 1 instance of consecutive TH, 2 instances of consecutive HT, 1 instance of consecutive HH and 1 instance of consecutive TT.


The answer is 525.

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.

3 solutions

Jay Joshi
Aug 5, 2013

This is what is given \Rightarrow _ ? TH ? TH ? TH ? TH ? TH ? _ , Every _ '?' _ can be filled with one or more _ 'H' 's or 'T' 's _ .

We have now 3 H _ and _ 2 T , If we put _ one or more H _ in left most _ '?' _ , we can not achieve target of _ 3 HH _ .

Also , if we put one or more _ one or more T _ in right most _'?' _ , we can not achieve goal .

Hence, we have five places for 3 H _ and _ five places for 2 T .

We can place all _ T's _ together or can place them separate .

There are 5 + ( 5 2 ) = 15 5 + \binom{5}{2} = 15 ways to do this .

We can place all _ H's _ together or can place as _{1 H , 2H} _ or all separate .

There are 5 + 2 ( 5 2 ) + ( 5 3 ) = 35 5 + 2\binom {5}{2} + \binom {5}{3} = 35 ways to do this .

Hence, there are _ 15 *35 = 525 _ sequences that could be written down .

Outstanding clear solution!!

Karthik Tadinada - 7 years, 10 months ago

Log in to reply

Thanks for encouragement :)

Actually In first line I should write "Every '?' can be filled with strings consists of H's and/or T's ,empty strings are also allowed ."

Jay Joshi - 7 years, 10 months ago

Please explain this : We have now 3 H and 2 T

Vicky Bro - 7 years, 10 months ago

Log in to reply

We have _ ? TH ? TH ? TH ? TH ? TH ? . _
As, we still need 3HH , 2 TT , so we must have at least 2 T and 3 H _ , as we have total of 15 times toss . So, we have now _ 3H and 2T .

Jay Joshi - 7 years, 10 months ago
Guiping Xie
Aug 4, 2013

He has 5 5 instances of consecutive T H , 4 TH, 4 instances of consecutive H T , 3 HT, 3 instances of consecutive H H HH , and 2 2 instances of consecutive T T TT . Multiplying this out we get (with overcount) 15 15 H s H's and 13 13 T s T's .

Since both these numbers are odd we know that one of each must be at the endpoints meaning we have 8 8 H s H's and 7 7 T s T's . Playing around with the possibilities we get that the sequence has to start with a T T and end with a H H .

Now lets write the sequence with just the H s H's and a T T at the beginning so it looks like this T H H H H H H H H THHHHHHHH

Lets deal with the 5 5 instances of consecutive T H , 4 TH, 4 instances of consecutive H T HT first

We can fill in 4 4 T s T's in any of the 7 7 spaces between consecutive H s H's to get ( 7 4 ) = 35 \binom{7}{4} = 35 which would satisfy all of the conditions except the 2 2 T T TT

Now we have two cases

\bullet Case 1 : 2 2 T T TT in different spots

For this case we choose the two locations after a T T to place another T T which means there are ( 5 2 ) = 10 \binom{5}{2} = 10 options here.

\bullet Case 2 : T T T TTT

For this case we have to choose the location after a T T to place a T T TT which adds ( 5 1 ) = 5 \binom{5}{1} = 5 extra options.

Therefore we get 35 × ( 10 + 5 ) = 525 35 \times (10 + 5) = \boxed{525}

Amy Chou
Aug 8, 2013

Consider the 10-flip sequence THTHTHTHTH. There are 5 instances of TH and 4 instances of HT, which is what we want in our 15-flip sequences. To create a 15-flip sequence with 3 instances of HH and 2 instances of TT, we just add 3 H's next to another H and 2 T's next to another T.

There are 5 places where there is an H and 3 new H's to put in, so there are ( 5 + 3 1 3 ) = ( 7 3 ) \binom{5+3-1}{3} = \binom{7}{3} ways to place the 3 H's. Similarly, there are 5 places where there is a T and 2 new T's to put in, so there are ( 5 + 2 1 2 ) = ( 6 2 ) \binom{5+2-1}{2} = \binom{6}{2} ways to place the T's. In total, there are ( 7 3 ) ( 6 2 ) = 35 15 = 525 \binom{7}{3} \binom{6}{2} = 35*15 = \boxed{525} ways to create the sequences.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...