Examples for


Recurrences, or recurrence relations, are equations that define sequences of values using recursion and initial values. Recurrences can be linear or non-linear, homogeneous or non-homogeneous, and first order or higher order. Wolfram|Alpha can solve various kinds of recurrences, find asymptotic bounds and find recurrence relations satisfied by given sequences. Some methods used for computing asymptotic bounds are the master theorem and the Akra–Bazzi method.

Solving Recurrences

Find closed-form solutions for recurrence relations and difference equations.

Solve a recurrence:

Specify initial values:

Solve a q -difference equation:

More examples

Asymptotic Bounds

Find asymptotic bounds for recurrences that involve scaling transformations on the index, such as those that arise in the analysis of divide-and-conquer algorithms.

Find an asymptotic bound for a recurrence equation:

Use floor and ceiling to round the index:

Compute asymptotic bounds even when a recurrence cannot be solved exactly:

More examples

Finding Recurrences

Deduce recurrence relations to model sequences of numbers or functions.

Find a recurrence satisfied by a given sequence:

Find a recurrence satisfied by a sequence of functions:

More examples