code: def maxEntropy(n,k):
    
  
    s = float(k)/n
    if s > 0.0 and s < 1.0:
      entropy = - s * math.log(s,2) - (1 - s) * math.log(1 - s,2)
    else:
      entropy = 0
  
    return n*entropy
docs: The maximum enropy we could get with n units and k winners