def invbinom(alpha,n,p): k = 0 S = 0 while S