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

how north GA different from south GA
Change the fraction to a decimal. a. 6⁄100 b. 43⁄100 c. 3⁄10 d. 4 23⁄1,000
What are four ways the Federal Trade Commission protects consumers?
At a company fish fry, 1/2 in attendance are employees. Employees’ spouses are 1/3 of the attendance. What is the percentage of the people in attendance who are
Who was not a U.S. military leader during World War II? Question 12 options: Douglas MacArthur Dwight Eisenhower George Read Chester Nimitz
What do you guys think?
Mylar balloons cost $1.25 each l, and latex balloons cost $0.75 each. What equations can be used to find the number of each type of balloon in a bunch of 18 bal
Because they were poor, most Irish immigrants who came to the United States in the early nineteenth century settled in
The polygons below are similar. Find the value of x. Polygons ABCD and EFGH are shown. AB equals 6. BC equals 8. CD equals 10. AD equals x. EF equals y. FG equ
HELP ASAP PLZ!!! Collin deposited $5,500 in a savings account that earns 4.5% simple annual interest. The formula that can be used for calculating simple intere