3,415 views

1 Answer

1 votes
1 votes

Characteristic equation: r2 - 5r + 6 = 0,

Solving the equation gives r = 2, 3.

f(r) = 2r+ r,

Particular solution, a(p) = A2(r)(2r) + A1r + A0

Putting this trial solution into the recurrence equation gives

A2r2r + A1r + A0 - 5[A2(r-1)2r-1 + A1(r-1) + A0] + 6[A2(r-2)2r-2 + A1(r-2) + A0] = 2r + r

or, (2r-2)(A2r22 - 5A2r.2 + 5A2.2 + 6A2.r - 12A2) + r(A1 - 5A1 + 6A1) + (A0 +5A1 - 5A0 - 12A1 +6A0) = 2r-2(22) + r(1) + (0)

Matching the coefficients give,

A2r22 - 5A2r.2 + 5A2.2 + 6A2.r - 12A2 = 4   => A2 = -2

A1 - 5A1 + 6A1 = 1  => A1 = 1/2

A0 +5A1 - 5A0 - 12A1 +6A0 = 0   => A0 = 7/4

So the particular solution is

a(p) = -2(r)(2r) + (1/2)r + 7/4

Related questions

1 votes
1 votes
1 answer
1
gaddesridevi asked Sep 9, 2018
881 views
Which of the following modules is/are responsible for checking whether a particular flow conforms traffic policies for that network? a. Packet Classification. b. Policing...
2 votes
2 votes
0 answers
2
Venkat Sai asked Jan 5, 2018
280 views
why are WAR AND WAW hazards not possible in mips architecture please see this video at 17:58 youtube.com/watch?v=9mpOG9YtSLc&t=1242s
1 votes
1 votes
1 answer
4
rsansiya111 asked Dec 7, 2021
356 views
The number of possible subsequences in a string of length n are:$n^{2}$$2^{n}$ n!n(n-1)