Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have the following general closed form linear recurrence equation:

$$x_n=r^{n-1}a+\left(\frac{r^{n-1}-1}{r-1}\right)d, \qquad (n=1,2,3,...)$$

and the next stage in the text shows the equation rearranged as:

$$x_n=\left(a+\frac{d}{r-1}\right)r^{n-1}-\frac{d}{r-1}, \qquad (n=1,2,3,...)$$

I am having trouble seeing how the rearrangement has been made and why it is preferred? The first version of the equation is more readable to me, but the latter seems to be the default way it is written and referred to.

Can you help me to understand how the rearrangement has been made and why it would be preferred?

Thanks.

share|improve this question
    
Which text says the second one is "simpler"? –  J. M. Oct 15 '11 at 13:40
    
In the second form the actual computation is just slightly easier since the same $ d/(r-1)$ term appears twice, we can recycle its computation. –  Ragib Zaman Oct 15 '11 at 14:00

1 Answer 1

up vote 1 down vote accepted

What I think you wanted to say was that you already have the solution to a recurrence relation. Anyway, if you start with

$$x_n=r^{n-1}a+\left(\frac{r^{n-1}-1}{r-1}\right)d$$

you can then do

$$x_n=r^{n-1}a+\left(\frac{r^{n-1}}{r-1}-\frac1{r-1}\right)d$$

and then

$$x_n=ar^{n-1}+\frac{dr^{n-1}}{r-1}-\frac{d}{r-1}$$

which can be regrouped to yield

$$x_n=\left(a+\frac{d}{r-1}\right)r^{n-1}-\frac{d}{r-1}$$

which is the second bit you have.

As to why the second one is preferred, I've no idea...

share|improve this answer
    
Thanks for the clear explanation, it has helped a lot! –  Aesir Oct 15 '11 at 13:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.