結果 : sum of first n natural numbers python code