Fix sum_to_n same element