How many of the below given sequences is a solution to the following recurrence relation: an = an-1 + 2an-2 +2n - 9?
1.) an = 2n + n - 2
2.) an = 7
2n
- n + 2
3.) an = 5(-1)n - n + 2
4.) an = 2 - n
5.) an = 2
(-4)n
+ 3


How many of the below given sequences is a solution to the following recurrence relation: an...
4 a) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 21 subsequence. b) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 44 subsequence. Answer is a) an = an-1+ an-4 + an-2 - an-3, b) an = an-1 + an-2 + an-5 + an-6, please explain how to get it,...
4 a) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 21 subsequence. b) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 44 subsequence. Answer is a) an = an-1+ an-4 + an-2 - an-3, b) an = an-1 + an-2 + an-5 + an-6, please explain how to get it,...
4. (15 pts) Solve the following recurrence relations, show all the works. a) Solve the given recurrence relation: ?? = 2??−1 + 2? ???ℎ ?0 = 1 b) Solve the given recurrence relation: an = 5an-1 - 6 an-2 with a0 = 5 and a1 = 13. c) Solve the given recurrence relation: an = 2an-1 - an-2 with a0 = 1 and a1 = 4.
06. Do any two of the following three parts Q6(a). Solve the following recurrence relation; Q6(b). Find a recurrence relation for an, which is the number of n-digit binary sequences with no pair of consecutive 1s. Explain your work. Q6(c) Solve the following problem using the Inclusion-Exclusion formula. How many ways are there to roll 8 distinct dice so that all the six faces appear? Hint: Use N(A'n n. NU)-S-,-1)' )-S-S2+S-(-1)Sn U- All possible rolls of 8 dice, Aj-Roll of...
For each of the following problems write a recurrence relation
describing the running time of each of the following algorithms and
determine the asymptotic complexity of the function defined by the
recurrence relation. Justify your solution using substitution and
carefully computing lower and upper bounds for the sums. Simplify
and express your answer as Θ(n k ) or Θ(n k (log n)) wherever
possible. If the algorithm takes exponential time, then just give
exponential lower bounds.
5. func5 (A,n) /*...
ind a solution to the following recurrence relation and initial condition.< n-1 40 .a. Suppose the number of bacteria in a colony quadruples every hour. Set up a recurrence relation for the number of bacteria in the colony at the end of n hours. 3.b. Find an explicit formula for the number of bacteria remaining in the colony after n hours.< 3.c. If 80 bacteria form a new colony, how many will be in the colony after three hours?d 4....
16. Which of the following is the recurrence relation for the power series solution about x=0 of the given equation? (8 Puan) y"-2xy + 4By = 0 where is a constant 2(-28 2n+2 = (m+2)(n+1)+1 none of these an+2= 2(n+B) an (n+2)(n+3) O an+2 2(-28) (n+2)(n+1) a Ant2 = 2() (7+2)(n+1) co 206-) m+2 (+1+2)(n+1) 2 - (+2)(n+11 an 20+) a 272)n+3) C+!
7. Find the solution of each of these recurrence relations with the given initial conditions. Use appropriate summation formulas to simplify your answers. a) an = (n + 1)an-1, ao = 5 The solution is: b) an=2an-1-3, a, = 5 c) an = An-1 + n-3, ao = 7
a) Find a recurrence relation for an - number of n digit quarternary sequences (using digts from (0, 1,2, 3]) with at least one 1 and the first 1 occurring before the first O.( It is possible that there is no 0 in the sequence). Hint: Consider the cases: the sequence starts with a 1 or with a 2 or with a 3. Note that it cannot start with a O. Explain all steps
a) Find a recurrence relation for...
Find general solution for the recurrence relation: an = 6an−1−9an−2+ 2 × 3n + 4 × 2n