I am advised by the instructions on my bag of oven chips that half way through cooking I should flip the chips, to ensure that the two sides cook equally.

When I shake my baking tin, each chip has the same individual and independent probability p of flipping over (0 ≤ p ≤ 1). Unfortunately, when I do this I cannot tell if a chip has flipped over or not.

Suppose I am given the value of p. How many times should I shake my tin to ensure the maximum number of chips are flipped?