MHB Solve Recurrence $$T(n)=aT(n-1)+bn^c$$

  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Recurrence
mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

I want to solve the following recurrence:
$$T(n)=aT(n-1)+bn^c , T(1)=1$$

I have done the following:

$$T(n)=aT(n-1)+bn^c \\ =a \left ( aT(n-2)+b(n-1)^c\right )+bn^c \\ =a^2T(n-2)+ab(n-1)^c+bn^c \\ =a^2 \left (aT(n-3)+b(n-2)^c\right )+ba(n-1)^c+bn^c \\=a^3T(n-3)+ba^2(n-2)^c+ba(n-1)^c+bn^c \\ = \dots \\ =a^iT(n-i)+b\sum_{k=0}^{i-1}a^k(n-k)^c$$

$n-i=1 \Rightarrow i=n-1$

Then we have the following:

$$T(n)=(n-1)+b \sum_{k=0}^{n-2}a^k(n-k)^c$$

Is it correct?? How can I continue?? (Wondering)

Is the substitution method the only way to solve this recurrence?? (Wondering)
 
Last edited by a moderator:
Physics news on Phys.org
mathmari said:
Hey! :o

I want to solve the following recurrence:
$$T(n)=aT(n-1)+bn^c , T(1)=1$$

I have done the following:

$$T(n)=aT(n-1)+bn^c \\ =a \left ( aT(n-2)+b(n-1)^c\right )+bn^c \\ =a^2T(n-2)+ab(n-1)^c+bn^c \\ =a^2 \left (aT(n-3)+b(n-2)^c\right )+ba(n-1)^c+bn^c \\=a^3T(n-3)+ba^2(n-2)^c+ba(n-1)^c+bn^c \\ = \dots \\ =a^iT(n-i)+b\sum_{k=0}^{i-1}a^k(n-k)^c$$

$n-i=1 \Rightarrow i=n-1$

Then we have the following:

$$T(n)=(n-1)+b \sum_{k=0}^{n-2}a^k(n-k)^c$$

Is it correct?? How can I continue?? (Wondering)

Is the substitution method the only way to solve this recurrence?? (Wondering)

Lets write the difference equation in slightly different form...

$\displaystyle t_{n+1} = a\ t_{n} + b\ (n+1)^{c},\ t_{0}=1\ (1)$

The solving procedure is illustrated in...

http://mathhelpboards.com/discrete-mathematics-set-theory-logic-15/difference-equation-tutorial-draft-part-i-426.html

With simple steps You should obtain...

$\displaystyle t_{n} = a^{n} + b\ \sum_{k=1}^{n} a^{n - k}\ k^{c}\ (2)$

Kind regards

$\chi$ $\sigma$
 
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Thread 'Detail of Diagonalization Lemma'
The following is more or less taken from page 6 of C. Smorynski's "Self-Reference and Modal Logic". (Springer, 1985) (I couldn't get raised brackets to indicate codification (Gödel numbering), so I use a box. The overline is assigning a name. The detail I would like clarification on is in the second step in the last line, where we have an m-overlined, and we substitute the expression for m. Are we saying that the name of a coded term is the same as the coded term? Thanks in advance.
Back
Top