f(1) = 2 and f(2) = 3, f(n) = f(1) + f(2) + f(n - 1), for n > 2. f(5) = ______
I think it's 10, but I'm not sure.
how do you solve it? bc im lost even how to get the answer :/
f(n) = f(1) + f(2) + f(n-1), right? f(5) = 2 + 3 + f(4) Assuming that f(x) = x+1, f(4) would be 5 f(5) = 2 + 3 + 5 f(5) = 10
OH ok thank you so much!
for n>2 , apply the formula so, let take n=3, f(3) = f(1) +f(2) + f(3-1) = f(1) + 2f(2) = 1+ 2*2= 5 n=4, f(4) = f(1) + f(2) +f(4-1) = f(1)+f(2) + f(3) = 1+2 +5 = 8 n=5 , f(5) = f(1) +f(2) +f(5-1) = f(1)+f(2) + f(4) = 1+2+8 = 11
Does it make sense?
yes thanks
uh @loser66 your arithmetic isn't quite right... \[f(3) = f(1) + f(2) + f(3-1) = f(1)+ f(2) + f(2) = f(1) + 2f(2) \]\[\qquad = 2+2*3 = 8\]
yes, hahaha... thank you @whpalmer4
so.... now im lost....
guide him, please, @whpalmer4
then \(f(4) = f(1)+f(2) + f(4-1) = 2+3 + 8 = \)
I am not good at teaching. :(
that = 13 so now what? or is 13 the answer?
so \(f(4) = 13\) but we need to find \(f(5)\) can you tell me the expression for \(f(5)\) from the formula above?
so then would it be f(5)=f(1)+f(2)+f(5-1)?
exactly! and we know \(f(5-1) = f(4) = 13\)
so then 2+3+13=18 so the answer is 18?
yes, that's my belief...
ok, give me a couple of minutes and ill be able to tell you if that's right or not lol
First 10 values: 2, 3, 8, 13, 18, 23, 28, 33, 38, 43
actually it's just a simple arithmetic sequence after the first 2 values, because we always add 2+3 to the previous term...
oh i see
i submitted 18 and its apparently wrong....
are you positive you have shown us the problem exactly as stated? Those values I gave you are the values of the recursive sequence you described.
you had f(2) = 3 in the problem statement here corrected sequence is 2, 5, 12, 19, 26, 33, 40, 47, 54, 61
sorry... so the answer is 26?
yes, the terms in my list are f(1), f(2), f(3), f(4), f(5), etc. \[f(5) = f(1) + f(2) + f(4) = f(1) + f(2) + (f(1)+f(2)+(f(1)+f(2)+f(2))) \]\[\qquad= 2+5+(2+5+(2+5+5)) =26\]
ok thx let me try that one
gets a little confusing typing it like that :-) maybe better would have been \[f(5) = f(1)+f(2) + f(4)\]\[f(4) = f(1)+f(2) + f(3)\]\[f(3) = f(1)+f(2)+f(2)\]\[f(2) = 5\]\[f(1) =2\]\[f(5) = 2+5+(2+5+(2+5+5)) = \] this way does make it apparent that now we have an arithmetic sequence with a common difference of 7 instead of 5, because each additional term adds 2+5=7
ok so im being asked for f(1) = 2 and f(2) = 3, f(n) = f(1) + f(2) + f(n - 1), for n > 2. f(5) = ______ that would be 18?
is this a different problem? in the screen capture you sent, it was f(2) = 5...
yes it is
Okay, then yes, if you work it out the same way, you get \(f(5) = 18\) just as we did when we were doing the "wrong" problem :-)
lol so it is 18
probably best way for you to write it would be\[f(1) = 2\]\[f(2) = 3\]\[f(3) = f(1)+f(2)+f(2) = 2+3 +3 = 8\]\[f(4) = f(1)+f(2) + f(4-1) = f(1)+f(2) + f(3) = 2+3+8 = 13\]\[f(5) = f(1)+f(2) + f(5-1) = f(1)+f(2) + f(4) = 2+3+13 = 18\] rather than trying to do it recursively like I did
better middle line: \[f(3) = f(1)+f(2) + f(3-1) = f(1)+f(2)+f(2) = 2+3+3=8\]
baby steps, baby steps :-)
lol
WHOOOOOO!!!!!!!!! that was the right answer thank you soooooooooooooo much!!
Great!
Join our real-time social learning platform and learn together with your friends!