Before revision:  As an example, when p=0.02 , the optimal strategy is k=3, m=(27,9,3) .
After revision:  As an example, for p=0.02 , the optimal strategy is k=3, m=(27,9,3) .