Sample Size. Binomial



Hello everyone,

I am trying to do an exercice where I have 30 batches of 200 units which have different number of faulty parts, as you can see in the attached picture.

Could anyone help me about how to calculate the minimum sample size in order to get at least one defective part?

I have calculated the probability which is: 162 faulty pieces/6000 units = 0,027

I guess I should use the bernuilli equation for P(faulty pieces>=1) =0,99 or 1, and then obtain the size of the sample, but I am having problems calculating it by using this equation.

Could anyone tell me if I am doing it correctly? or if there is a better way to calculate it.