結果 : how to get the next term in arithmetic sequence