Recurrences Input: standard input Output: standard output Consider recurrent functions of the following form: f(n) = a1 f(n - 1) + a2 f(n - 2) + a3 f(n - 3) + ... + ad f(n - d), for n > d. a1, a2, ..., ad - arbitrary constants. A famous example is th…