anonymous
  • anonymous
The table below shows the values of f(n) for different values of n: n 1 2 3 4 5 6 f(n) 1 2 4 16 128 4096 Which recursive function best represents the values shown in the table? A) f(1) = 1, f(2) = 2, f(n) = f(n -3) + f(n - 2); n > 2 B) f(1) = 1, f(2) = 2, f(n) = f(n -3) f(n - 2); n > 2 C)f(1) =1, f(2) = 2, f(n) = 2f(n -1) + f(n - 2); n > 2 D) f(1) = 1, f(2) = 2, f(n) = 2f(n -1) f(n - 2); n > 2
Mathematics
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
please help!
anonymous
  • anonymous
@welshfella can you help with this one?
welshfella
  • welshfella
f(1) means the value of function when n = 1 f(2) when n=2 etc

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

welshfella
  • welshfella
what you need to do is substitute n = 3 into the formulae for f(n) and see if this gives you f(2) - that is a value of 2.
anonymous
  • anonymous
oh, ok i'll do that really quickly
anonymous
  • anonymous
wait:/ i don't have a formula
welshfella
  • welshfella
sorry - i got that wrong - it should give you the value for f(3) which is 4
anonymous
  • anonymous
yeah
welshfella
  • welshfella
ok lets try the last one
anonymous
  • anonymous
alrighty, what happens first
welshfella
  • welshfella
f(n) = 2f(n -1) f(n - 2); n > 2 f(3) = 2*f(2)*f(1) = 2*2*1 = 4
anonymous
  • anonymous
what do you do from there?
welshfella
  • welshfella
thats the one - we hit the right one
welshfella
  • welshfella
f(3) = 4 - which is the value on the table
anonymous
  • anonymous
oh ok
welshfella
  • welshfella
understand?
anonymous
  • anonymous
yeah, so just to be clear it would be D?
welshfella
  • welshfella
yes we could double check to see if f(4) = 16 f(4) = 2*f(3)*f(2) = 2 * 4 * 2 = ?
welshfella
  • welshfella
does that = 16?
anonymous
  • anonymous
yes:^)
welshfella
  • welshfella
thats itt the D is the correct choice
anonymous
  • anonymous
oh i see, okay thank you @welshfella
welshfella
  • welshfella
yw

Looking for something else?

Not the answer you are looking for? Search for more explanations.