Arithmetic Series Sum Calculator

Compute the sum of an arithmetic series from term count and first and last terms.

📐 計算公式
等差數列前 n 項和 Sₙ = n × (首項a₁ + 末項aₙ) ÷ 2;公差 d = (aₙ − a₁) ÷ (n − 1)(n ≥2 才顯示,否則記 —);各項平均值 = Sₙ ÷ n(n 為 0 時按 1 兜底防除零)。校驗:無強校驗,數值預設按 0。判據:Sₙ 保留 2 位小數、公差保留 4 位小數,公差為負即遞減數列。

輸入項數 n、首項 a₁ 與末項 aₙ,求前 n 項和。

📌 計算說明
  • 高斯求和公式。
  • 10×(1+10)/2 → 55。