Given the following series: 1, 2, 5, 26, 677, ….. such that thenth term of the series equals to (n-1)th ^2 +1 and the first termof the series is 1. Write a C program using recursive functionnamed f to compute the nth term. Use for loop to print the valuesof first n terms in the series. You will take input n from theuser.
Example output:
Enter number of terms: *value*
*numbers here*
nth term: *value*
PLEASE DO NOT USE IOSTREAM