standarddeviationcalculator.net SD Calculator

Infinite series calculator

Share this page

Favorites

    No favorites yet. Press Favorite on any page to keep it here.

    Methodology

    Enter the general term aₙ and where the sum starts. The calculator applies the standard convergence tests in turn, explains what each one shows, and gives the sum when the series converges, exactly when it can and numerically when it cannot.

    Use n as the index. ^ for powers, n! for factorials, (-1)^n for alternating signs; ln, sqrt, e and pi work.

    Σ 1/n² from n = 1 to ∞ π²/6 ≈ 1.644934067
    Verdictconverges (p-series)
    Sumπ²/6 ≈ 1.644934067
    How the sum was foundζ(2) = π²/6 (Basel problem)
    S after 10 terms1.549767731
    S after 1,000 terms1.643934567
    Statusexact result for a recognised series
    510152025301.541.561.581.61.621.64 n

    ━ partial sums Sₙ   ┄ sum ≈ 1.64493

    Partial sums
    naₙPartial sum SₙTerms added
    1111
    20.251.252
    30.111111111.361111111113
    40.06251.423611111114
    50.041.463611111115
    60.0277777781.491388888896
    70.0204081631.511797052157
    80.0156251.527422052158
    90.0123456791.539767731179
    100.011.5497677311710
    200.00251.5961632439120
    500.00041.6251327336250
    1000.00011.63498390018100
    10001.0000000e−61.643934566681000
    100001.0000000e−81.6448340718510000
    Show the working, step by step
    1. Write out the first terms.

      1 + 0.25 + 0.111111 + 0.0625 + 0.04 + …

    2. nth-term (divergence) test: inconclusive. |a_n| appears to tend to 0 (|a_1000000| ≈ 1.000e−12). That is necessary for convergence but does not prove it, so this test says nothing more.

    3. p-series: converges. a_n = 1/n^2 for every n checked. A p-series Σ1/n^p converges exactly when p > 1. Here p = 2.

    4. Find the sum: ζ(2) = π²/6 (Basel problem).

      Σ = π²/6 ≈ 1.644934067

    Tests are applied in order. Recognised series (geometric, p-series), the nth-term test, the ratio and root tests, the alternating series test, then a limit comparison with a p-series.

    What convergence means

    Σ aₙ = lim N→∞ S_N, where S_N = a_k + a_(k+1) + … + a_N

    A series converges if its partial sums approach a finite limit, and that limit is its sum. Otherwise it diverges: the sums grow without bound, or keep oscillating.

    The tests, in the order the calculator applies them

    TestConverges ifDiverges if
    Geometric, Σ a·rⁿ|r| < 1 (sum a/(1 − r))|r| ≥ 1
    p-series, Σ 1/nᵖp > 1p ≤ 1
    nth-termnever decides convergenceaₙ does not tend to 0
    Ratio, L = lim |aₙ₊₁/aₙ|L < 1L > 1 (L = 1: no answer)
    Root, L = lim |aₙ|^(1/n)L < 1L > 1 (L = 1: no answer)
    Alternating seriessigns alternate and |aₙ| decreases to 0does not decide divergence
    Limit comparison with 1/nᵖaₙ behaves like C/nᵖ with p > 1… with p ≤ 1 (positive terms)

    The recognised forms are exact. The ratio, root and comparison limits are estimated from terms far out in the series (n in the thousands or more), so for those the verdict is strong numerical evidence rather than a proof. Borderline series, such as Σ1/(n·ln n), which diverges, and Σ1/(n·ln²n), which converges, sit exactly where numerical estimates cannot tell them apart. The calculator says "undecided" rather than guess.

    Infinite series: a worked example

    The default is Σ 1/n² from n = 1.

    1. The first terms are 1 + 1/4 + 1/9 + 1/16 + 1/25 + …
    2. aₙ = 1/n² exactly, a p-series with p = 2 > 1, so the series converges.
    3. The sum is ζ(2) = π²/6 ≈ 1.644934.
    4. The partial sums approach it slowly. S₁₀ = 1.549768, S₁₀₀ = 1.634984, S₁₀₀₀ = 1.643935. The remainder after N terms is about 1/N, which is why the chart creeps up rather than jumping to the limit.

    Well-known sums

    SeriesSum
    Σ (1/2)ⁿ from n = 02
    Σ 1/n² from n = 1π²/6
    Σ 1/n⁴ from n = 1π⁴/90
    Σ 1/n! from n = 0e
    Σ (−1)ⁿ⁺¹/n from n = 1ln 2
    Σ (−1)ⁿ/(2n + 1) from n = 0π/4
    Σ n/2ⁿ from n = 12
    Σ 1/(n(n + 1)) from n = 11 (telescoping)

    Common mistakes

    • Concluding convergence because aₙ → 0. The harmonic series is the standard counterexample.
    • Reading a slowly growing partial sum as a limit. Σ1/n reaches only 7.49 after 1,000 terms but has no limit.
    • Using the ratio test on a p-series. It always gives L = 1, which decides nothing.
    • Forgetting the starting index. Σ(1/2)ⁿ is 2 from n = 0 but 1 from n = 1.
    Infinite series calculator: the worked example on this page, with its result and chart
    Infinite series calculator: the worked example above, at a glance.

    Common questions

    Does the harmonic series 1 + 1/2 + 1/3 + … converge?

    No. It is the p-series with p = 1, which diverges, even though its terms tend to 0. It grows very slowly. The first 1,000 terms add up to only about 7.49, and it passes 20 only after roughly 270 million terms. That slowness is why partial sums alone can mislead.

    If the terms go to zero, does the series converge?

    Not necessarily. Terms tending to 0 is necessary for convergence but not sufficient. Σ1/n diverges with terms that go to 0. The nth-term test only works in one direction. If the terms do not go to 0, the series certainly diverges.

    What is the sum of 1/n²?

    π²/6 ≈ 1.644934. Euler found this in 1734 (the Basel problem). In general Σ1/n^p is the zeta function ζ(p). For even p it is a rational multiple of π^p, such as ζ(4) = π⁴/90, but for odd p no simple closed form is known.

    When is the ratio test inconclusive?

    When lim |aₙ₊₁/aₙ| = 1. This happens for every p-series, convergent or not. For 1/n² and 1/n alike the ratio tends to 1. Use the p-series test or a comparison instead. The ratio test is at its best with factorials and exponentials, such as n/2ⁿ or 1/n!.

    How accurate is the sum when there is no formula?

    The calculator speeds up the slow cases. Repeated averaging of partial sums for alternating series, and an integral estimate of the remainder for positive terms that fall off like a power of n. These usually give 8 or more correct digits. The result is still a numerical estimate, and the page says so. Recognised series (geometric, p-series) are summed with their exact formulas.