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

Of 200 students surveyed about their extracurricular activities, some are members of the student council. Of those students on the student council, 85 students
Someone help me please!!!
(3x-70) (3y+40) 120 x I need answer please fast.
Which of the following is used to show trends such an increase in data over time? A. Line B. Bar C. Table
How much will atmospheric carbon change in 100 year?
Do you have any problems with sharing housework?
complex solutions of x^2+3x+4=0?
how long would it take an ostrich to run to the sun if the speed is 80km/h
JR and Abby went running. JR ran 13 minutes longer than Abby. If Abby ran for 40 minutes, write and solve an equation to find out how long JR ran
What is poisonous enough to kill 100,000 turkeys? That’s the question asked by scientists who studied a mass die-off of turkeys in Great Britain. It turned out