def binomFrep2(n,p,k1,k2): return sum(binomFdp(n,p,k) for k in range(k1,k2+1))