Series Calculator

Type the general term, where the series starts and where it stops to find its sum.

A formula in n, such as 1/n^2, (-1)^n/n, n/2^n or n!/n^n. Type powers with ^ and factorials with !.

The first n, a whole number. Leave it as 1 unless the series starts later.

A whole number, or inf for an infinite series.

Try

Result

You entered∑n=1∞(−1)n+1n\sum_{n=1}^{\infty} \frac{\left(-1\right)^{n + 1}}{n}

∑n=1∞(−1)n+1n=ln⁡2≈0.693147\displaystyle \sum_{n=1}^{\infty} \frac{\left(-1\right)^{n + 1}}{n} = \ln 2 \approx 0.693147

Decimal

0.693147\displaystyle 0.693147
Show the work
  1. Divergence test

    Every convergent series has terms that approach 0, so check that first. Here the terms do approach 0, so this test is silent and we look for a test that can decide.

    Using lim⁡n→∞an≠0  ⇒  ∑an diverges\lim_{n\to\infty} a_n \neq 0 \;\Rightarrow\; \sum a_n \text{ diverges}

    lim⁡n→∞1n=0\lim_{n\to\infty} \frac{1}{n} = 0
  2. Alternating series test

    The sign changes with every term, so write the term as (−1)n+c bn(-1)^{n+c}\,b_n with bn=1nb_n = \frac{1}{n}. Here bnb_n approaches 0 and is eventually decreasing, so the test applies.

    Using ∑(−1)nbn converges if bn decreases to 0\sum (-1)^{n} b_n \text{ converges if } b_n \text{ decreases to } 0

    bn=1n→0b_n = \frac{1}{n} \to 0
  3. Absolute versus conditional convergence

    The series of absolute values diverges (p-series, p = 1), but the alternating series converges, so it converges conditionally.

  4. Alternating harmonic series

    The series 1−12+13−14+⋯1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \cdots sums to ln⁡2\ln 2; this series is a constant multiple of it.

    Using ∑n=1∞(−1)n+1n=ln⁡2\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} = \ln 2

    S=ln⁡2S = \ln 2
  5. Result

    The series converges and its sum is ln⁡2≈0.693147\ln 2 \approx 0.693147.

    ∑n=1∞(−1)n+1n=ln⁡2≈0.693147\sum_{n=1}^{\infty} \frac{\left(-1\right)^{n + 1}}{n} = \ln 2 \approx 0.693147

Worked examples