...

/

Introduction to Recursive Numbers

Introduction to Recursive Numbers

Let's get introduced to the Recursive Numbers pattern.

Overview

A recursive number is a number that can be generated from a sequence of one or more previous terms through a recurrence relation. A recurrence relation is an equation that uses recursion to relate the terms in a sequence. That means the nthnth term of a sequence can be generated from its previous terms. The process of solving a computational problem by using the solutions of the smaller instances of the same problem is known as recursion. Recursion is calculated using recursive functions.

In this pattern, we will be discussing 11 problems related to the this pattern. The following diagram shows an overview of these problems.

Problems explored in Recursive Numbers pattern

A recursive function is a function that calls itself with a reduced problem set. A recursive function has the following:

  1. The base case, a trivial case that can be solved easily
  2. The recursive case, a case that implements the recurrence relation

An example of recurrence relation for finding the ...

Access this course and 1400+ top-rated courses and projects.