Find a recurrence relation satisfied by this sequence. a_{n}=n+(-1)^{n}ZS

ossidianaZ

ossidianaZ

Answered question

2021-09-13

Find a recurrence relation satisfied by this sequence.
an=n+(1)n

Answer & Explanation

Aubree Mcintyre

Aubree Mcintyre

Skilled2021-09-14Added 73 answers

Given:
an=n+(1)n
Let us first determine the first term by replacing n in the given expression for an by 0:
a0=0+(1)0=0+1=1
Let us similarly determine the next few terms as well:
a1=1+(1)1=11=0=a01
a2=2+(1)2=2+1=3=a1+3
a3=3+(1)3=31=2=a21
a4=4+(1)4=4+1=5=a3+3
a5=5+(1)5=51=4=a41
a6=6+(1)6=6+1=7=a5+3
We note that each term is the previous term increased by 3 if n is even:
If n even: an=an1+3
We note that each term is the previous term decreased by 1 if n is odd:
If n odd: an=an11
Thus a recurrence relation for an is then:
a0=1
an={an1+3if n evenan11if n odd
Note: There are infinitely many different recurence relations that satisfy any sequence.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?