結果 : arithmetic progression code in python