bySum is now for an array of allowablesums