A hint to get started
Find the smallest battery sample below a probability bound
Twenty percent of batteries produced by a machine are faulty. Find the smallest sample size for which the probability of fewer than 12 faulty batteries is less than 0.65.
CJC · Lecture · Example 5
Keep p fixed and vary the number of trials.
Compare the neighboring sample sizes around the first crossing.