
Arithmetic sequence
Calculate arithmetic sequence using the values and assumptions you provide.
Your inputs stay in your browser. Displayed results are rounded to a maximum of 12 significant digits.
Method and assumptions
Method version 1.0.0 · Updated
Calculate
Formula: u_n = u_1 + (n − 1)r
Calculate arithmetic sequence using the values and assumptions you provide.
- first
- First term
- step
- Common difference
- count
- Number of terms
Results depend on the assumptions entered; verify professional or safety-critical decisions independently.
Calculate with code
These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.
JavaScript
const first = 3, step = 4, count = 6;
console.log(first + (count - 1) * step); // 23rd termTypeScript
const first=3, step=4, count=6;
const term: number = first + (count - 1) * step;
console.log(term); // 23Python
first, step, count = 3, 4, 6
print(first + (count - 1) * step) # 23Java
int first=3, step=4, count=6;
System.out.println(first + (count-1)*step); // 23C#
int first=3, step=4, count=6;
Console.WriteLine(first + (count-1)*step); // 23