I'm not exactly sure why you want to solve for the smallest k such that P(k+1)/P(k) < 0 when no such k exists given that P(k) and P(k+1) are probabilities and the total number of trials is m (so the largest possible value of k is m).
The approach for (ii) is to find the largest value of k such...