A single observation of a random variable having a geometric distribution is used to test the null hypothesis θ = θ0 against the alternative hypothesis θ = θ1 > θ0. If the null hypothesis is rejected if and only if the observed value of the random variable is greater than or equal to the positive integer k, find expressions for the probabilities of type I and type II errors.