Solution:
Concept: A random experiment is an experiment whose possible outcomes are all known in advance, but whose actual outcome in any one trial cannot be predicted. The set of all its possible outcomes is the sample space S, and an event is a subset of S.
In each part we follow the rules of the experiment one stage at a time, the way a tree diagram does. An outcome is written as the results in order: for example, HT3 means head, then tail, then 3 on the die.
Step 1 — Part (i): find what follows each pair of tosses. The two tosses give HH, HT, TH or TT. The die is thrown only when the second toss is a tail, that is after HT and after TT; each of these then splits into 6 outcomes. After HH and TH the second toss is a head, so the experiment stops there. Counting gives 2+6+6=14 outcomes:
S={HH,TH,HT1,HT2,HT3,HT4,HT5,HT6,TT1,TT2,TT3,TT4,TT5,TT6}
Step 2 — Part (ii): find what follows each pair of tosses. After HH and TH (second toss a head) a die is thrown, so there are 6 outcomes each. After HT and TT (second toss a tail) a coin is tossed again, so there are 2 outcomes each. Counting gives 6+6+2+2=16 outcomes:
S={HH1,HH2,HH3,HH4,HH5,HH6,TH1,TH2,TH3,TH4,TH5,TH6,HTH,HTT,TTH,TTT}
Step 3 — Part (iii): follow the coin and then the die. If the coin shows a tail, nothing more is done, so T is one outcome. If it shows a head, the die is thrown. An odd number (1, 3 or 5) ends the experiment with the outcome H1, H3 or H5. An even number (2, 4 or 6) means the die is thrown again, and each of these splits into 6 outcomes, for example H21,H22,…,H26. Counting gives 1+3+3×6=22 outcomes:
S={T,H1,H3,H5,H21,H22,H23,H24,H25,H26,H41,H42,H43,H44,H45,H46,H61,H62,H63,H64,H65,H66}
Note: The printed answer to part (i) leaves out TH. The tosses tail-then-head are a possible outcome (the second toss is not a tail, so no die is thrown and the experiment ends), so the sample space has 14 outcomes, not 13.
Therefore, (i) S={HH,TH,HT1,HT2,HT3,HT4,HT5,HT6,TT1,TT2,TT3,TT4,TT5,TT6} (14 outcomes); (ii) S={HH1,HH2,HH3,HH4,HH5,HH6,TH1,TH2,TH3,TH4,TH5,TH6,HTH,HTT,TTH,TTT} (16 outcomes); (iii) S={T,H1,H3,H5,H21,…,H26,H41,…,H46,H61,…,H66} (22 outcomes).