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

What is the first step in solving In(x - 1) = In6 - Inx for x?
Consider a rectangle of length L inches and width W inches. Find a formula for the perimeter of the rectangle. Use upper case letters. P = L+L+W+W (b) If the le
Find the value of y.​
21 Type the correct answer in the box. Use numerals instead of words. If necessary, use / for the fraction bar. The solution set of n2 - 14n = -45 is { (Separat
Somos cinco hermanos. Ricardo, José Luis y Alejandro son (1) hermanos. Francisco es (2) cuñado. Es el esposo de (3) hermana mayor, Mercedes. Francisco es argent
Why were European countries looking for a new route to Asia
What is 12x - 4y = -8 written in slope-intercept form? y = 3x+2 y= 3x-2 y = 12x-8 y=-12X-8
How many electrons does 1.00 kg of water contain?
Which linear inequality is graphed with y>-x-2 to create the given solution set?
a car travels at an average speed of 52 miles per hour how many miles does it travel in 3 hours and 15 minutes​