How many ways can a coin be tossed 14 times with at least 6 tails in a row?

  • Thread starter Thread starter toothpaste666
  • Start date Start date
  • Tags Tags
    Sequence
Click For Summary

Homework Help Overview

The problem involves determining the number of sequences resulting from tossing a coin 14 times, specifically focusing on sequences that contain at least 6 consecutive tails among 3 heads and 11 tails.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss treating the sequence of tosses as a "word" with letters representing heads and tails, and explore the implications of treating a sequence of 6 tails as a single letter. There are questions about the validity of counting arrangements and concerns about potential double counting in the proposed methods. Some participants suggest breaking down the problem into cases based on the position of the sequence of tails.

Discussion Status

The discussion is ongoing, with various approaches being explored. Some participants have provided calculations and reasoning, while others have raised questions about the assumptions and methods used. There is no explicit consensus yet, but several productive lines of inquiry are being pursued.

Contextual Notes

Participants are working under the constraints of the problem statement, which specifies the number of heads and tails, and the requirement for at least 6 consecutive tails. There are indications of confusion regarding the counting methods and the uniqueness of arrangements.

toothpaste666
Messages
517
Reaction score
20

Homework Statement


Suppose a coin is tossed 14 times and there are 3 heads and 11 tails. How many such sequences are there in which there are at least 6 tails in a row?

The Attempt at a Solution


I will treat the sequence of coin tosses as a "word" where each letter is a toss and is either an H or T to represent the result of that toss. In order to ensure at least 6 tails in a row I will treat "TTTTTT" as a separate "letter". so now there are 14 - 6 + 1 = 9 letters in the word and there are 3 H's , 5 T's and 1 "TTTTTT"
we need to find the number of arrangements of these letters
there are 9 letters , 3 of type 1 , 5 of type 2 and 1 of type 3 so the total number of arrangements is
9!/3!5!1! = 9!/3!5!

is this correct?
 
Physics news on Phys.org
Code:
counter = 0
validtosses = 0
matchingtosses = 0
bstring = ""

while not counter == int('11111111111111',2):  #tails = 1, heads = 0
    bstring = '{0:08b}'.format(counter)  #convert our counter to binary string
    if bstring.count("1") == 11:  #if there are exactly 11 tails increment validtosses
        validtosses += 1
        if not bstring.find("111111") == -1:  #if there is a string of "111111" increment matchingtosses
            matchingtosses +=1
    counter += 1

print "valid tosses: %d \n matching tosses: %d" % (validtosses, matchingtosses)

valid tosses: 364
matching tosses: 224

Your work is a little hard to follow. Are you sure you aren't double counting?:
HHH†TTTTT
HHHT†TTTT

are the same, but look different under your methodology († = TTTTTT)

EDIT: fixed!
 
Last edited:
Why do you think that's the number of arrangements?

I doubt the answer will involve only factorials because the Tails are not distinguishable from one another, and neither are the heads.

We know that there is a string of at least six consecutive Tails. Call the first string of six Tails in that sequence Bob. How many tosses can there be before Bob begins? In the case where that number is k, how many different possible combinations are there of the other five tosses in the series?
 
Last edited:
EDIT: Made another error, now fixed:

So we will do a sequence like you suggested, with † = TTTTTT. There are 9 possible starting indices for †.
For a given index, n : 1 ≤ n ≤ 8, the formula for the number of combinations is as follows:
c = (8-n) choose (2) + (n-1)(8-n) + (n-1) choose 2 = 21

The reason for this is that, except for where n = 0, each successive value of n requires that † have an [H] immediately preceding it, otherwise it we will double count between indexes. Thus, 8-n is the amount of space on the right side of †, and n-1 is the amount of space on the left side of †, minus 1 because of the [H] that has to be preceding it. Of the two remaining head flips, two can be on the left "(n-1) choose 2", two can be on the right "(8-n) choose 2", or 1 can be on each side (n-1)(8-n).
For each of these 8 indices, we get 21 combos, or 168 total. We have to go back and calculate the value at n = 0, because when n = 0 it can't have an [H] preceding the †, so the formula above doesn't work. Instead, there are 8 spaces to the right and three [H] to distribute, so 8c3, which is 56. Thus the answer becomes 168+56 = 224
 
Last edited:
toothpaste666 said:

Homework Statement


Suppose a coin is tossed 14 times and there are 3 heads and 11 tails. How many such sequences are there in which there are at least 6 tails in a row?

The Attempt at a Solution


I will treat the sequence of coin tosses as a "word" where each letter is a toss and is either an H or T to represent the result of that toss. In order to ensure at least 6 tails in a row I will treat "TTTTTT" as a separate "letter". so now there are 14 - 6 + 1 = 9 letters in the word and there are 3 H's , 5 T's and 1 "TTTTTT"
we need to find the number of arrangements of these letters
there are 9 letters , 3 of type 1 , 5 of type 2 and 1 of type 3 so the total number of arrangements is
9!/3!5!1! = 9!/3!5!

is this correct?
First, your answer is 504, which is greater than 14-C-3 = 364. So, it can't be correct.

You can adapt your idea by considering two cases. One where there is an initial sequence of at least 6 tails. The second is where there is a word HTTTTTT somewhere.

You need the uniqueness of the string with 6 tails, as pointed out above.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
14
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 41 ·
2
Replies
41
Views
9K