Discrete Mathematics & Series

Arithmetic Sequence Calculator

Calculate the \(n\)-th term \(a_n\), common difference \(d\), and partial sum \(S_n\) of any arithmetic progression with step-by-step algebraic breakdown.

Calculated \(n\)-th Term (\(a_n\))
aโ‚‚โ‚€ = 62
Formula: aโ‚‚โ‚€ = 5 + (20 - 1) ร— 3 = 62
Sum of First \(n\) Terms (\(S_n\))
670
Arithmetic Mean of Sequence
33.50
Explicit Linear Formula
aโ‚™ = 3n + 2
Previous Term (\(a_{n-1}\))
59

Algorithmic Resolution & Sequence Preview

Loading calculation steps...

1. Foundations and Definitions of Arithmetic Progressions

In discrete mathematics, numerical analysis, and algorithm theory, a sequence is an ordered mapping from the set of positive integers \(\mathbb{N} = \{1, 2, 3, \dots\}\) into a numerical field such as the real numbers \(\mathbb{R}\). An Arithmetic Sequence, also historically designated as an Arithmetic Progression (AP), is a special class of sequence characterized by a strictly linear recurrence relation: the difference between any two consecutive terms is an invariant constant.

Formally, a sequence \(\{a_n\}_{n=1}^\infty\) is arithmetic if and only if there exists a fixed real constant \(d \in \mathbb{R}\), termed the common difference, such that:

$$a_{n+1} - a_n = d \quad \forall n \ge 1$$

Depending on the sign of the common difference \(d\):

  • Monotonically Increasing (\(d > 0\)): Each successive term exceeds the previous term (e.g., \(2, 5, 8, 11, \dots\)).
  • Monotonically Decreasing (\(d < 0\)): Each successive term is smaller than the previous term (e.g., \(20, 16, 12, 8, \dots\)).
  • Constant / Stationary (\(d = 0\)): All terms in the sequence are identically equal to the first term \(a_1\).

2. Explicit Closed-Form Formula for the \(n\)-th Term

While the recursive definition \(a_n = a_{n-1} + d\) requires calculating all preceding terms sequentially, mathematical induction provides an immediate closed-form explicit expression for any arbitrary index \(n\).

2.1 Derivation by Unrolling the Recurrence

Observing the cumulative additions of the common difference:

$$\begin{aligned} a_1 &= a_1 \\ a_2 &= a_1 + d \\ a_3 &= a_2 + d = (a_1 + d) + d = a_1 + 2d \\ a_4 &= a_3 + d = (a_1 + 2d) + d = a_1 + 3d \\ &\;\vdots \\ a_n &= a_1 + (n - 1)d \end{aligned}$$

Because the first term requires zero additions of \(d\), the \(n\)-th term requires exactly \(n - 1\) additions. Thus, the universal explicit formula is:

$$a_n = a_1 + (n - 1)d$$

2.2 The Linear Function Perspective

Expanding the explicit formula algebraically:

$$a_n = d \cdot n + (a_1 - d)$$

This formulation reveals that an arithmetic sequence is simply the discrete integer domain restriction of a continuous linear function \(f(x) = mx + c\), where the common difference \(d\) acts as the line slope (\(m = d\)) and \(a_1 - d\) corresponds to the virtual \(y\)-intercept at \(n = 0\).

3. Partial Sum of an Arithmetic Series (\(S_n\))

The sum of the first \(n\) terms of an arithmetic sequence is termed an Arithmetic Series, denoted \(S_n = \sum_{k=1}^n a_k\). Deriving its closed-form expression represents one of the celebrated anecdotes in the history of mathematics.

3.1 Gauss's Reversal and Pairing Method

Let \(S_n\) be written forwards, and simultaneously written backwards:

$$\begin{aligned} S_n &= a_1 &+& \;(a_1 + d) &+& \;\dots &+& \;(a_n - d) &+& \;a_n \\ S_n &= a_n &+& \;(a_n - d) &+& \;\dots &+& \;(a_1 + d) &+& \;a_1 \end{aligned}$$

Adding both equations vertically term by term:

$$2S_n = (a_1 + a_n) + (a_1 + a_n) + \dots + (a_1 + a_n)$$

Because there are exactly \(n\) terms, and each vertical sum equals \(a_1 + a_n\), the sum simplifies to:

$$2S_n = n(a_1 + a_n) \implies S_n = \frac{n}{2}(a_1 + a_n)$$

Substituting the explicit formula for the terminal term \(a_n = a_1 + (n-1)d\) yields the second classic formulation:

$$S_n = \frac{n}{2}\big[2a_1 + (n - 1)d\big]$$

Geometrically, this represents the average of the initial and terminal terms multiplied by the total number of terms: \(S_n = n \times \bar{a}\), where \(\bar{a} = \frac{a_1 + a_n}{2}\) is the arithmetic mean.

4. Solving for Missing Variables and Intermediate Means

Given any subset of parameters among \(\{a_1, d, n, a_n, S_n\}\), algebraic substitution allows for the exact derivation of all remaining unknown variables:

  • Finding Common Difference (\(d\)) from two terms \(a_p\) and \(a_q\) (\(q > p\)): $$d = \frac{a_q - a_p}{q - p}$$
  • Finding Number of Terms (\(n\)) from \(a_1\), \(a_n\), and \(d\): $$n = \frac{a_n - a_1}{d} + 1$$
  • Inserting \(k\) Arithmetic Means between \(x\) and \(y\): Treat \(x\) as term 1 and \(y\) as term \(k + 2\). The required common difference is \(d = \frac{y - x}{k + 1}\).

5. Physical, Engineering, and Computational Applications

Arithmetic sequences govern phenomena across diverse physical and applied sciences:

5.1 Kinematics: Galileo's Odd Number Law

Consider a body falling from rest (\(v_0 = 0\)) under uniform gravitational acceleration \(g\). The distance covered during the \(n\)-th consecutive time interval of duration \(\Delta t\) is:

$$\Delta s_n = s(n\Delta t) - s((n-1)\Delta t) = \frac{1}{2}g(n\Delta t)^2 - \frac{1}{2}g((n-1)\Delta t)^2 = \frac{1}{2}g(\Delta t)^2 (2n - 1)$$

The sequence of distances \(\Delta s_1, \Delta s_2, \Delta s_3, \dots\) is directly proportional to \(1, 3, 5, 7, 9, \dots\), a classic arithmetic progression with first term 1 and common difference 2.

5.2 Structural Engineering and Architectural Seating

In structural amphitheater, stadium, and auditorium design, sightline optimization requires concentric tiers of seating to expand radially. If the first row contains \(a_1\) seats and each successive row adds \(d\) seats to accommodate the expanding perimeter, the total capacity of an \(n\)-row stadium is governed precisely by \(S_n = \frac{n}{2}[2a_1 + (n-1)d]\).

5.3 Computer Architecture: Memory Strides and Loop Unrolling

In high-performance computing (HPC) and GPU kernel programming, fetching array elements with a constant memory stride (e.g., accessing matrix columns stored in row-major layout) accesses memory addresses in an arithmetic progression: \(\text{Addr}_n = \text{Base} + n \times \text{Stride}\). Understanding this progression enables compilers to optimize SIMD vectorization and hardware prefetching.

6. Benchmark Comparative Reference Table

The table below catalogues eight benchmark arithmetic progressions, illustrating the first term \(a_1\), common difference \(d\), explicit formula, 10th term, and partial sum \(S_{10}\).

Sequence Description First Term (\(a_1\)) Difference (\(d\)) Explicit Formula (\(a_n\)) 10th Term (\(a_{10}\)) Partial Sum (\(S_{10}\)) Nature
Counting Numbers 1 +1 \(a_n = n\) 10 55 Increasing
Odd Positive Integers 1 +2 \(a_n = 2n - 1\) 19 100 (\(n^2\)) Increasing
Even Positive Integers 2 +2 \(a_n = 2n\) 20 110 (\(n(n+1)\)) Increasing
Industrial Shift (5, 8, 11...) 5 +3 \(a_n = 3n + 2\) 32 185 Increasing
Cooling Rate Decline 100 -7 \(a_n = 107 - 7n\) 37 685 Decreasing
Fractional Precision 0.5 +0.25 \(a_n = 0.25n + 0.25\) 2.75 16.25 Increasing
Negative Progression -20 -5 \(a_n = -5n - 15\) -65 -425 Decreasing
Stationary Sequence 42 0 \(a_n = 42\) 42 420 Constant

7. Worked Civil Engineering Case Study: Stadium Amphitheater Seating Capacity

Civil Engineering Case Study: Municipal Amphitheater Tier Sizing & Structural Load

Scenario: A structural engineering firm is designing a reinforced concrete amphitheater. Due to sightline curvature, Row 1 (innermost) accommodates exactly \(a_1 = 44\text{ seats}\). Each subsequent row expands along a wider radius, adding exactly \(d = 4\text{ seats}\) per row. The architectural footprint permits a total of \(n = 28\text{ rows}\). The team must calculate: (1) the seat count in the topmost 28th row, (2) the total seating capacity of the amphitheater, and (3) the average seats per row for evacuation modeling.

Step 1: Calculate Topmost Row Capacity (\(a_{28}\))
Using the explicit formula \(a_n = a_1 + (n - 1)d\): $$a_{28} = 44 + (28 - 1) \times 4 = 44 + (27 \times 4) = 44 + 108 = 152\text{ seats}$$ Row 28 accommodates exactly 152 spectators.

Step 2: Calculate Total Amphitheater Seating Capacity (\(S_{28}\))
Using Gauss's summation formula: $$S_{28} = \frac{n}{2}(a_1 + a_{28}) = \frac{28}{2}(44 + 152) = 14 \times 196 = 2,744\text{ seats}$$ Alternatively, using the parameter form: $$S_{28} = \frac{28}{2}\big[2(44) + (28 - 1)(4)\big] = 14 \times [88 + 108] = 14 \times 196 = 2,744\text{ seats}$$

Step 3: Compute Mean Egress Density
The average row capacity is: $$\bar{a} = \frac{S_{28}}{n} = \frac{2,744}{28} = 98.0\text{ seats/row}$$ The fire life safety engineer dimensions the aisleways based on a mean egress density of 98 patrons per row.

8. Frequently Asked Questions (FAQ)

Can the common difference of an arithmetic sequence be negative or a fraction?

Yes. The common difference \(d\) can be any real number (\(d \in \mathbb{R}\)), including negative integers, rational fractions (e.g., \(d = \frac{1}{3}\)), or irrational numbers (e.g., \(d = \sqrt{2}\)). A negative common difference produces a strictly decreasing sequence.

How does an arithmetic sequence differ from a geometric sequence?

In an arithmetic sequence, consecutive terms change by adding a constant common difference (\(a_n = a_1 + (n-1)d\)), exhibiting linear growth. In a geometric sequence, consecutive terms change by multiplying by a constant common ratio (\(g_n = g_1 \cdot r^{n-1}\)), exhibiting exponential growth or decay.

Why is the sum of the first n odd numbers always a perfect square?

The first \(n\) odd numbers form an arithmetic sequence with \(a_1 = 1\) and \(d = 2\). The \(n\)-th odd number is \(a_n = 2n - 1\). Applying Gauss's sum formula: \(S_n = \frac{n}{2}(a_1 + a_n) = \frac{n}{2}(1 + 2n - 1) = \frac{n}{2}(2n) = n^2\). Thus, \(1 + 3 + 5 + \dots + (2n-1) = n^2\) identically for all positive integers.

Can an arithmetic series have an infinite sum?

If \(d \neq 0\), the terms grow unboundedly in magnitude, causing an infinite arithmetic series to diverge to \(+\infty\) or \(-\infty\). The only case where an infinite arithmetic series converges is the trivial sequence where every term is zero (\(a_1 = 0, d = 0\)), yielding an infinite sum of 0.