Problem:
There are lily pads in a pond numbered . A frog starts on lily pad . During the -th second, the frog jumps from lily pad to , falling into the water with probability . The probability that the frog lands safely on lily pad without having fallen into the water at any point can be written as , where are positive integers and . Find .