The chance of drawing exactly r white balls is nCrprqn−r, and we have to find for what value of r this expression is greatest.
Now nCrprqn−r>nCr−1pr−1qn−(r−1),
so long as (n−r+1)p>rq,
or (n+1)p>(p+q)r.
But p+q=1; hence the required value of r is the greatest integer in p(n+1).
If n is such that pn is an integer, the most likely case is that of pn successes and qn failures.