已知数列{an}满足:a1=1,a2=2,且 an+2=(2+cosnπ)(an-1)+3,n∈N+求通项公式an

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 13:56:37

已知数列{an}满足:a1=1,a2=2,且 an+2=(2+cosnπ)(an-1)+3,n∈N+求通项公式an
已知数列{an}满足:a1=1,a2=2,且 an+2=(2+cosnπ)(an-1)+3,n∈N+
求通项公式an

已知数列{an}满足:a1=1,a2=2,且 an+2=(2+cosnπ)(an-1)+3,n∈N+求通项公式an
a(n+2)=(2+cosnπ)(an -1)+3
if n is odd
a(n+2)=(2+cosnπ)(an -1)+3
a(n+2)=(2-1)(an -1)+3
= an +2
a(n+2) -an = 2
an - a1= n-1
an = n
if n is even
a(n+2)=(2+cosnπ)(an -1)+3
= 3(an -1)+3
a(n+2) = 3an
an/a2 = 3^[(n-2)/2]
an = 2.3^[(n-2)/2]
ie
an = n ,if n is odd
=2.3^[(n-2)/2] ,if n is even