1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mamont248 [21]
3 years ago
15

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

Mathematics
1 answer:
Novosadov [1.4K]3 years ago
5 0

Answer:

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.

You might be interested in
3 coffees and 4 donuts cost $10.05. In the same cafeteria, 5 coffees and 7 donuts cost $17.15. How much do you have to pay for 4
MakcuM [25]

Answer

You need to pay $14.20 to get 4 coffees and 6 donuts.

Explanation

Let's say that the price of one coffee and x and the price of one donut is y.

In the first instance, 3x+4y=10.05.

In the second instance, 5x+7y=17.15.

You can use these equations to find the value of a coffee and the value of a donut.

We can find x and y using elimination. To do this, you should add or subtract one equation from another to "get rid" of a variable (I'll "get rid" of x). We can't just add or subtract the equations right now, since that wouldn't lead to 0x.

Multiply the first equation by 5, and the second equation by 3. After this, both equations will have 15x. Make sure to multiply each term by 5 and 3.

15x+20y=50.25. This means that 15 coffees and 20 donuts is $50.25.

15x+21y=51.45. This means that 15 coffees and 21 donuts is 51.45.

Now since there are an equal number of coffees, we can subtract these equations.

(15x+21y=51.45)-(15x+20y=50.25) equals y=1.20 (a donut costs $1.20).

Plug the price of the donut into y to find x; 3x+4(1.20)=10.05. The value of x is 1.75. The price of a coffee is 1.75.

You can multiply 1.75 by 4 to find the price of 4 coffees and 1.20 by 6 to find the price of 6 donuts.

1.75*4 is 7.00 and 1.20*6 is 7.20.

You can add those to find the total price; 7.00+7.20=14.20.

5 0
3 years ago
What is the value of x in the eqation 5[x-6] = 2 [x+3]
topjm [15]

Answer:

x = 12

Step-by-step explanation:

5x - 30 = 2x + 6

3x = 36

x = 12

8 0
3 years ago
Read 2 more answers
F(x) = 3x² + 9x – 16<br> Find f(-8)
Nezavi [6.7K]

Answer: 104

Step-by-step explanation:

f(-8) represents f(x) evaluated at x=-8.

f(-8)=3(-8)^2 +9(-8)-16\\\\=192-72-16\\\\=120-16\\\\=104

7 0
10 months ago
Any suggestions or answers
OLEGan [10]
2nd answer.

any pts in the shaded region satisfies your simultaneous equation.
5 0
3 years ago
What is the area of a trapezoid? 47,45,65
Masteriza [31]
Area = 2,520m^2
(47+65)/2 = 56
56x45 = 2,520
8 0
2 years ago
Other questions:
  • Candidates for employment at a city fire department are required to take a written aptitude test. scores on this test are normal
    7·1 answer
  • Help my math teacher created thistest and I don’t know how to do any of this
    6·1 answer
  • Frank buys p pounds of oranges for $2.29 per pound and the same number of pound ls of apples for $1.69 per pound. What does the
    7·2 answers
  • Find the slope with (7, 4) and (8, 2)
    10·2 answers
  • A.) What is the measurement of the missing side (c)? <br><br>b.) What is the angle of (x)? ​
    15·1 answer
  • Evaluate |x + y|, for x = 8 and y = -15.<br><br> 23<br> 7<br> -7<br> -23
    8·2 answers
  • Pl help it’s for homework
    7·1 answer
  • 21. A triangle has side lengths of 6, 8, and 9. What type of triangle is it?
    11·2 answers
  • Find 2 consecutive odd integers sum of who's square is 290​ pls send fast
    10·1 answer
  • Find x and y. <br>x - y = 2 <br>3x - y = 12​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!