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

Which of the following is one of the three main guidelines for writing? A offer description that's based on one of your senses B minimize detail C include all d
Is x-6 over 6-x the same thing
Describe the changes the Industrial Revolution brought to the lives of working-class people and middle-class people. How did their experiences of industrializat
Reform elements such as the recall, the referendum, and the initiative were primarily designed to give power to trusts. political machines. voters. monopolies.
What is the square root of 12.25
What is the approximate latitude and longitude of roanoke, virginia?
william pitt's advice to parliament asked for a more gentle way of govering america.how do you think his idea could have solved britian's problems with the colo
When does DNA replication happen? A. during the G1 phase of the cell cycle B. during the S phase of the cell cycle C. during the G2 phase of the cell cycle D. d
What is the answer to X+4x=-2 and show your work
Which statement best describes the federal government’s response to racial violence in the South in the late 1800s?