For a situation in which independent binomial events are randomly sampled in sequence, this page will calculate (a) the probability that you will end up with exactly k instances of the outcome in question, with the final (kth) instance occurring on trial N; and (b) the probability that you will have to sample at least N events before finding the kth instance of the outcome.