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
If u = <-7, 6> and v = <-4, 17>, which vector can be added to u + 3v to get the unit vector <1, 0> as the resu
ivann1987 [24]

With u = <-7, 6> and v = <-4, 17>, we have

u + 3v = <-7, 6> + 3 <-4, 17> = <-7, 6> + <-12, 51> = <-19, 57>

We want to find a vector w such that

u + 3v + w = <1, 0>

Subtract u + 3v from both sides to get

w = <1, 0> - (u + 3v) = <1, 0> - <-19, 57>

w = <20, -57>

7 0
3 years ago
PLEASE HELP IMAGE BELOW WITH QUESTION!!!
RSB [31]

Answer:

2

Step-by-step explanation:

Because the base of the first is 6 and the second is 3 so 6/3 = 2

8 0
3 years ago
Read 2 more answers
enrollment in the ski/snowboard club increased by 30% this year. there are now 182 students in the club. how many students were
eduard
Enrolement increased by 30% that means last year=100%
incease of 30%=30+100=130% now

now=182

percent means parts out of 100 so
130%=130/100=13/10


182=13/10 of x (x represents the number last year)
of means multipy so
182=13/10 times x
multiply both sides by 10/13 to clear fraction
182 times 10/13=x=140



140 students last year
8 0
3 years ago
Function g is defined below.
Elina [12.6K]
Rule: if you have graph of function y=f(x) and a>0, then:
1. y=f(x-a) is translation a units right;
2. y=f(x+a) is translation a units left;
3. y=f(x)-a is translation a units down;
4. y=f(x)+a is translation a units up;

Since g(x)=f(x+2)-5, then firstly you have to translate the graph of function y=f(x) two units left and secondly 5 units down.


6 0
3 years ago
Read 2 more answers
A cell phone is on sale for $205 after a 20% off discount. What was the original price of the phone?
Leni [432]

Answer:

256.25

Step-by-step explanation:

if you have a 20% discount then you are paying 80% if the original cost.

so 80% of the original price is 205

.80x = 205

x = 205/.80

7 0
3 years ago
Other questions:
  • What is the maturity value of a single-
    6·1 answer
  • Broadway is 2.6 kilometers long. There are 13 sets of stop signs on Broadway, each the same distance apart. How many meters apar
    9·1 answer
  • Find the values of x and y
    12·1 answer
  • Rewrite without absolute value sign for different values of x: y=− 2x+5 + 2x−5 if x&lt;−2.5; if x&gt;2.5; if −2.5≤x≤2.5
    10·1 answer
  • How many degrees in the angle
    5·2 answers
  • -7=z/-6 solve for z pls help it 7th grade math and it’s on khan ;cc
    15·2 answers
  • Write the equation of a line that is parallel to y= -5/4x + 7 and that passes through the point (-4,1)
    6·1 answer
  • When designing a study to determine this population proportion, what is the minimum number of drivers you would need to survey t
    11·1 answer
  • Which equation represents a proportional relationship between the x and y values a) y+4=3x b) y-3x=0 c) y+5x=6 d) y+1/4x=2
    11·1 answer
  • Your Turn:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!