Cunningham function (source code)

= Cunningham function
{wiki=Cunningham_function}

The Cunningham function, often denoted as \\( C_n \\), is a sequence of numbers defined as follows: - \\( C_0 = 1 \\) - \\( C_1 = 1 \\) - For \\( n \\geq 2 \\), \\( C_n = 2 \\cdot C_\{n-1\} + C_\{n-2\} \\) This recurrence relation means that each term is generated by taking twice the previous term and adding the term before that.