254 views

1 Answer

1 votes
1 votes

Let T(n) be the number of ways in which tail never appears three consecutive times in n tosses. We can break down the possible outcomes of the first n-1 tosses into three cases:

  1. The first n-1 tosses end in H (heads). The nth toss can be either H or T (tails). Thus, there are T(n-1) ways to achieve this.

  2. The first n-2 tosses end in TH. The nth toss must be H to avoid three consecutive tails. Thus, there are T(n-2) ways to achieve this.

  3. The first n-3 tosses end in TTH. The nth toss must be H and the (n-1)th toss must be T. Thus, there are T(n-3) ways to achieve this.

Since these cases are mutually exclusive and exhaustive, the total number of ways in which tail never appears three consecutive times in n tosses is:

T(n) = T(n-1) + T(n-2) + T(n-3)

The base cases are:

T(1) = 2 (H or T) T(2) = 4 (HH, HT, TH, TT) T(3) = 7 (HHH, HHT, HTH, THH, THT, HTT, TTT)

Using these base cases and the recurrence relation, we can compute T(n) for any value of n.

For example, T(4) = T(3) + T(2) + T(1) = 7 + 4 + 2 = 13.

Therefore, the number of ways in which tail never appears three consecutive times in n tosses is T(n), where T is defined recursively by T(n) = T(n-1) + T(n-2) + T(n-3) with base cases T(1) = 2, T(2) = 4, and T(3) = 7.

Related questions

0 votes
0 votes
2 answers
1
Sahil Gupta asked Dec 12, 2014
1,430 views
A fair coin is tossed 100 times. The Probability of getting 50 heads is close to one of the following numbers:a)0.001b)0.1c)0.3 d)0.4
0 votes
0 votes
4 answers
2
1 votes
1 votes
1 answer
3
sampad asked Mar 21, 2016
2,938 views
The number of ways in which $2n$ white and $2n$ black balls can be arranged such that no consecutive $n$ white balls are together, is${}^{2n+1}C_2 + {}^{4n}C_{2n}$${}^{2n...
0 votes
0 votes
1 answer
4
. asked Feb 23, 2017
623 views
The number of ways in which three non-negative integers can be chosen such that is