2,943 views
0 votes
0 votes

Using Generating function , solve the recurrence relation 

an+2 - 2an+1 + an = 2n , n>=0 , a0=2 , a1=1

1 Answer

Best answer
2 votes
2 votes

an+2 - 2an+1 + an = 2n

Solving homogeneous part

an+2 - 2an+1 + an =0

take, an=crn

r2-2r+1=0

r=1,1

an=(c1+c2n)1n..........................i

Solving non homogeneous part

an=A.2n

A.2n+2  - 2A2n+1 + A.2n=2n

4A - 4A+A=1

A=1

then,an=2n.........................ii

from i and ii we get

an=(c1+c2n)+2n

a0=2

c1+1=2

or,c1=1

a1=1

c1+c2+2=1

c2= -2

an=(1+(-2)n)+2n

an=(1-2n)+2n

selected by

Related questions

0 votes
0 votes
2 answers
1
Rohit_0e1 asked May 11, 2022
1,021 views
suggest some good resources for discrete mathematics