Arithmetic sequence

Calculate arithmetic sequence using the values and assumptions you provide.

Calculate arithmetic sequence using the values and assumptions you provide.

Both dots and commas are accepted as decimal separators.

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 term
TypeScript
const first=3, step=4, count=6;
const term: number = first + (count - 1) * step;
console.log(term); // 23
Python
first, step, count = 3, 4, 6
print(first + (count - 1) * step)  # 23
Java
int first=3, step=4, count=6;
System.out.println(first + (count-1)*step); // 23
C#
int first=3, step=4, count=6;
Console.WriteLine(first + (count-1)*step); // 23