I need help solving a recurrence

assuming that n is a power of 2 for with

Its for an algorithms course and the answer needs to be in asymptotic notation.

I tried repeated substitution but things are getting complicated pretty fast. It does produce some pattern but it is not jumping out at me. Does anyone have some advice on an alternative?

Re: I need help solving a recurrence

Quote:

Originally Posted by

**restin84** assuming that n is a power of 2

for

with

Its for an algorithms course and the answer needs to be in asymptotic notation. I tried repeated substitution but things are getting complicated pretty fast. It does produce some pattern but it is not jumping out at me. Does anyone have some advice on an alternative?

Check this out:

:::: ,....

Re: I need help solving a recurrence

Quote:

Originally Posted by

**MaxJasper** Check this out:

::::

,....

So I guess that since I'm seeing I should be using a change of variable?

Re: I need help solving a recurrence

Quote:

Originally Posted by

**restin84** So I guess that since I'm seeing

I should be using a change of variable?

You said n is a power of 2 : n=2,4,8,...

Re: I need help solving a recurrence

Let P(k) = (2 + 1/1)(2 + 1/2) ... (2 + 1/k) and P(0) = 1. Then . It is clear that , so . It is possible to show by induction that , so , which is a much better upper bound.