Hours until one of two alarms first rings
Two independent alarms are wired to the same room. Each hour, alarm A rings with probability and alarm B rings with probability , independently of each other and across hours. You wait until you hear at least one of them ring.
On average, how many hours until the first ring from either alarm?