1) Write a program with dedicated functions to find the sum of the following series:a. 2, 5, 7, . . ., 2N + 1b. -2, 4, 46, . . ., 6n3 – 2Note that the functions must be written as a recursive functions.how to solve this?