147k views
4 votes
Given the following definition, compute Q(5).

Q(n) =

0 if n = 0
1 if n = 1
2 if n = 2
Q(n − 1) + Q(n − 2) + Q(n − 3) if n > 2

User Vikasde
by
8.4k points

1 Answer

4 votes
The Answer Is [5nq^2] That's What It Gave Me
User Ashutosh Chamoli
by
8.1k points