Ask Question
30 June, 07:46

3. Write a recursive algorithm of the sequence t (1) = 1 and t (n) = n2 t (n-1) as a function.

+5
Answers (1)
  1. 30 June, 10:59
    0
    int t (int n) {

    if (n = = 1)

    return 1;

    else

    return n*n*t (n-1);

    }

    Step-by-step explanation:

    A recursive function is a function that calls itself.

    I am going to give you an example of this algorithm in the C language of programming.

    int t (int n) {

    if (n = = 1)

    return 1;

    else

    return n*n*t (n-1);

    }

    The function is named t. In the else clause, the function calls itself, so it is recursive.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “3. Write a recursive algorithm of the sequence t (1) = 1 and t (n) = n2 t (n-1) as a function. ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers