I should preface this question by saying that I am a computer science major. A logic question was posed in an IT class as a challenge. It is extra-curricular and pertains very little to actual subject matter. The question, I assume, was a 'satirical' reference to the pascal language, or perhaps binary code. None of us are math majors, obviously, so hence the challenge. I think our proctor was hinting that we should program a script to solve this, which i intend to do. I just need some guidance in how I find the method in which I can deduce a solution. We were give 2 sequences of flips (HT) and asked to compare the probabilities of the sequences.I immediately thought of the pascal triangle, which i think is a step in the right direction. However, one of the sequences is repeating while the other is seemingly random: e.g. HTHTHTHHTHTHTHTHTH HHHHHHHHTTTTTTTTTT My question is, do I approach this by mapping this out with pascal triangle and just taking the probability of H in each sequence, or do i need to apply another method to take into account the repeating sequence?