 We have formula_14.Therefore,

The last line separates the summation into the case formula_16 and the case formula_17.Since the chance of an object distributed to bucket formula_7 is formula_19, formula_20 is 1 with probability formula_19 and 0 otherwise.