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
Ten(10) adults and 3 children attend a local concert for $59. Four(4) adults and 3
gladu [14]

Answer:

$5 per adult and $3 per kid

Step-by-step explanation:

5x10=50

3x3=9

50+9=59

4x5=20

3x3=9

20+9=29

4 0
3 years ago
Three painters can paint three walls in three minutes. how many painters are needed to paint 27 walls in nine minutes?
Advocard [28]
There is 3 variable, in this case, painters, walls and time(minutes). You need to find how many painters needed and provided information on the walls and time(minutes).

Increasing walls will cause more painter needed. It was reversed in time which was increased time will cause less painter needed.

In this case, you need to divide the variable walls with time since it reversed so: 27wall/9 minutes
It equal to : 3 walls/minute

Information provided is:
3 painters= 3 walls/3 minutes
Equal to : 3 paintes= 1 wall/minute

To make it 3 walls/minute, the painter needed will be:
(3 walls/minute) / (1 wall/minute) x 3 painters= 9 painters

Answer: 9 painters
4 0
3 years ago
Place these numbers in greatest to least, 15%, 1/8, 0.2, and 0.09 QQQQQUICKLY PLEAS!
snow_lady [41]
Hey there.

15% is equivalent to 0.15 and 1/8 is equivalent to 0.125. Let's set these from greatest to least:

0.2, 0.15 (15%), 0.125 (1/8), 0.09.

I hope this helps!
3 0
3 years ago
If 3 * 9 + 2y = 47 what is the value of y
docker41 [41]
Answer: 10

Why?
3*9+2y=47
3*9= 27
27+2y=47
47-27= 20
2y=20
20/2=10
Y=10

Hope this helps :D
6 0
3 years ago
Imagine telling a friend about your favorite coffee and donut shop. Your friend asks how much it charges for a cup of coffee and
Mama L [17]

Answer:

c + 2d = $7.00

2c + 3d = $12.00

Step-by-step explanation:

Hello!

<u>Let:</u>

  • c = # of coffees
  • d = # of donuts

1 coffee and 2 donuts cost $7.00

This can be repesented by 1c + 2d = $7.00, or c + 2d = $7.00

2 coffees and 3 donuts cost $12.00

This can be represented by 2c + 3d = $12.00

<u>So, the system is :</u>

c + 2d = $7.00

2c + 3d = $12.00

8 0
2 years ago
Other questions:
  • Which of the following is not a property of all parallelograms?
    14·1 answer
  • What are the dimensions of a rectangular box with a volume of 50b 3 + 75b2 - 2b - 3?
    13·2 answers
  • What number has 12,24, and 30 as multiples explain how u found out the answer
    10·1 answer
  • Consider a student loan of 15,000 at a fixed APR of 9% for 25 years. A) Calculate the monthly payment B) Determine the tiaras am
    11·1 answer
  • Can someone plz help me with this one problem this is my last question!
    5·2 answers
  • Two of the volleyball team’s coaches and three of the players’ parents would like to
    6·1 answer
  • A 16 ounce box of cereal is priced at $3.68. Find the cost per ounce *
    6·1 answer
  • Can I get steps on how to solve this?
    15·1 answer
  • Andrew washed 32 car windows in 4 hours. At this rate, how many windows did he wash in 8 hours?
    8·2 answers
  • Martha is making her favorite punch for the school dance. The directions call for 5 cups of water for every ½ cup of punch mix.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!