If there were N instances of adultery, then on the Nth night N wives are killed. Proof (needless to say) by induction.