Compute the n-th term of a geometric sequence from first term, ratio and n.
输入首项 a₁、公比 r 与项数 n,求第 n 项。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| General term of a geometric sequence | a_n = a1 · q^(n - 1) | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Common ratio | q = a_(n+1)/a_n, constant for every pair of consecutive terms | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Sum of the first n terms | S_n = a1 · (1 - q^n)/(1 - q) for q ≠ 1 | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Infinite geometric series | For |q| < 1 the series converges to S = a1/(1 - q) | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |