You will often encounter sequence and series in evaluating Big-O equations.

Geometric series

In geometric series, there are common ratio () between terms.

3, 6, 12, 24, 48...

Geometric series formula

When the number of terms is known, the sum of the terms can be described as: Where:

  • is the number of terms
  • is the common ratio
  • is the first term

When the number of terms is unknown, the sum of the terms can be described as:

Arithmetic series

In arithmetic series, there are common difference () between terms.

5, 8, 11, 14, 17...

When the number of terms is known, the sum of the terms can be described as: Where:

  • is the number of terms
  • is the first term
  • is the last term

Back to parent page:

MathsSequence_and_SeriesBig-Oalgorithm_complexity