Medal and fan to the first one who replies
A recursive function is shown below: f(1) = 5 and f(n) = f(n - 1) - 6; n > 1 Which of the following lists the terms in the sequence defined by this recursive function? 5, 1, 7, 13, 19, ... 5, -1, -7, -13, -19, ... 5, 11, 17, 23, 29, ... 5, -11, -17, -23, -29, ...
It is either the 1st or the 3rd
@dinopyte please help I will give you a medal
hey directrix can you please help
f(1) = 5 ; Let n = 2. Then, f(2) = f(2 - 1) - 6 f(2) = f(1) - 6 f(2) = 5 - 6 = -1 Now, you try f(3), okay?
I dont get it
You have to work by steps or you will get mixed up.
So far, we have f(1) = 5, f(2) = -1 f(n - 1) - 6; Replace n by 3.
ok so if we r doing f(3) then n=3 right
No.
whaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa? so what would n=
f(n) = f(n - 1) - 6 Replace n by 3. f(3) = f(3-1) - 6 = f(2) - 6 = (-1) - 6 = -7
You try f(4).
f(4)= f(4 - 1)-6
is that right
So far so good.
f(4)= f(4 - 1) - 6 = f(3) - 6 = ? Look up to see what f of 3 is or you'll mess up.
f(2)?
@directrix r u there
Yes.
Read back up the thread to find the value of f(2)
is that to the f(2) or r u there
You need f(3) for your calulation.
f(2)=-1
f(1) = 5 ; Given f(2) = -1 Computed above f(3) - -7 Computed above
So, put the value of f(3) here: f(4)= f(4 - 1) - 6 = f(3) - 6 =
f(4)= f(4 - 1) - 6 = f(3) - 6 = -7?
No but almost.
--7?
f(4)= f(4 - 1) - 6 = f(3) - 6 = -7 Minus 6 =
oh ok so -13?
Correct. Hey, I messed up the typing of this: f(3) = -7 Computed above. Sorry.
Now, see if you can knock out f(5)
np its ok
f(5)=f(5-1)-6=f(4)= f(4 - 1) - 6 = f(3) - 6 = f(2) - 6 = (-1) - 6 = -7
No. Let's see what went wrong.
f(5)=f(5-1) - 6 = f(4) - 6 = -13 - 6 =
-13 - 6 = -19
What this recursive function does is to do something to the previous term to generate the current term. In this case, the function just subtracts 6 from the previous term. But, if you mess up the previous term, set of term values will not be right.
@ro561man
Im here its being weird
This site has been acting weird for years but it is acting extra weird lately. Nobody seems to be able to repair it.
@Directrix Yeah I agree, but can we get to the question I don't have much time
oh there u r srry
I thought we had finished.
What is this f(5)=f(5-1) - 6 = f(4) - 6 = -13 - 6 = Then, pick the answer and close out.
-13 - 6 = what
im still lost I get that you subtract 6 but I dont know if the answer is A or C
That is -19 Here are the terms we computed:
f(1) = 5 ; Given f(2) = -1 Computed above f(3) = -7 Computed above f(4) = -13 Computed above f(5) = -19 Computed above
oh I see you had to do all the functions then you would get your answer the way it was all set up I got confused sorry we were done
Thank you for the help once again
but can you answer one more
@Directrix r u there
You'll have to start a new thread. This one is too long.
ok
Close and move on.
Join our real-time social learning platform and learn together with your friends!