Induction for sum instead of #sum because it's faster