Number Sequence 计算器
数学Number Sequence 计算器
Sequences model patterns in finance, science, and discrete math — from linear growth to compound ratios. This Number Sequence 计算器 builds arithmetic sequences (constant difference) and geometric sequences (constant ratio), reporting the nth term and partial sums for homework verification, programming test cases, and quick exploration of series behavior.
使用方法
- Choose sequence type: arithmetic or geometric.
- Enter the first term a₁.
- Set common difference d (arithmetic) or common ratio r (geometric).
- Specify how many terms or the nth term index to display.
- Review listed terms and optional sum of first n terms.
背后的逻辑 / 公式
Arithmetic: aₙ = a₁ + (n−1)d; sum Sₙ = n/2 × (2a₁ + (n−1)d). Geometric: aₙ = a₁ × r^(n−1); sum Sₙ = a₁(1−r^n)/(1−r) for r ≠ 1.
实际示例
- a₁=3, d=4 gives 3, 7, 11, 15, … with a₁₀ = 39.
- Geometric a₁=2, r=3 yields 2, 6, 18, 54, …
- Sum of first 10 terms of 1,2,3,…,10 equals 55.
常见问题
Can r be negative in geometric sequences?
是 — alternate signs produce oscillating terms such as 1, −2, 4, −8, …
What if r equals 1?
All terms equal a₁. The standard finite sum formula divides by (1−r), so handle r = 1 as Sₙ = n × a₁ separately.
Does this find the pattern from given terms?
This tool generates from parameters. Pattern recognition from a list may require fitting d or r from consecutive terms.
