A particular class has had a history of low attendance. The teacher decides that he will not lecture unless at least k of the n students enrolled in class, are present. Each student will independently show up with probability pg if the weather is good, and with pb if the weather is bad. Given the probability of bad weather on a given day, obtain an expression for the probability that the teacher will teach his class on that day.