hisankitsuneounjbo hisankitsuneounjbo
  • 14-08-2017
  • Mathematics
contestada

Given the following definition, compute Q(5). Q(n) = 0 if n = 0 2 if n = 1 4 if n = 2 Q(n − 1) + Q(n − 2) + Q(n − 3) if n > 2

Respuesta :

Ilyes39
Ilyes39 Ilyes39
  • 26-08-2017
We have 
[tex]Q(0)=0\\ Q(1)=2\\ Q(2)=4[/tex]
and [tex]Q(n)=Q(n-1)+Q(n-2)+Q(n-3)\mbox{ when } n\ \textgreater \ 2.[/tex]
So 
[tex]Q(3)=Q(2)+Q(1)+Q(0)=4+2+0=6\\ Q(4)=Q(3)+Q(2)+Q(1)=6+4+2=12\\ Q(5)=Q(4)+Q(3)+Q(2)=12+6+4=22. [/tex]
Answer Link

Otras preguntas

Hi, i really need help with this please !!!
An electron is approximately 0.05% of mass of a proton protons and neutrons each have a mass of 1 amu which of the following best describes the relationship bet
What does seed need order to grow?
Do you think your skin is polar or non-polar? Explain.
PLEASE HELP ME IT IS A TIMED QUIZ!!!!! Consider the triangles. Triangle P E C has angles 60 degrees, 58 degrees, blank. Triangle X W J has angles 58 degrees, 60
Triangle XY Z is a dilation of triangle ABC. What is the perimeter of triangle XYZ? A= 108in B = 90in C=81in D= 135 in
divide mixed numbers(no decimal answers)
How did Islamic calendar impact Islam
What is a car an example of?
being colorblind how is this concept of being "color-blind" is equivalent to being "fair".  Discuss your thoughts and opinions around why or why not this is a g