**Q: Find the generating function for the sequence:
a _{0} = 1
a_{n} = 2a_{n-1} + 1**

**Also, find a closed form solution for a _{n}.**

A: OK. I am not a generating function expert, but I will try my best with the following solution and explanation:

A generating function is basically a polynomials whose coefficients represent each term of the sequence.

I am going to write out the first few terms of our sequence:

a_{0} = 1

a_{1} = 3

a_{2} = 7

a_{3} = 15

a_{4} = 31

….

a_{n} = 2a_{n-1} + 1

So, we need a polynomials that looks something like:

f(x) = … + … +31x^{4} + 15x^{3} + 7x^{2} + 3x + 1

So:

f(x) = ∑_{n≥0}(2^{n+1} – 1)x^{n}

Write out the first few terms of this sequence to see if I am right… I am pretty sure I am, but I am trying to get this posted in a hurry (not recommended) to help out a student!

So, that is our generating function. It “generates” the sequence.

Oh great, now he tells me the problem isn’t due for a week…. Rushed for nothing. Oh well, I will leave it as is and if anyone doesn’t like my answer, they can challenge me to a duel.

Now for part 2: Find a closed form solution. Currently, each term depends on the term before it… Not good. If you want to know the 73rd term, that means you need to know the 72nd term, which means you need to know the 71st term, which means you need to blah blah blah blah. See why this is not good? We want a way to find the 73rd term straight-away.

Let’s find the pattern. I am going to start writing some terms out and doing some algebra with substitutions:

a_{1} = 2a_{0} + 1

a_{2} = 2a_{1} + 1 = 2[2a_{0} + 1] + 1 = 4a_{0} + 3

a_{3} = 2a_{2} + 1 = 2[4a_{0} + 3] + 1 = 8a_{0} + 7

a_{4} = 2a_{3} + 1 = 2[8a_{0} + 7] + 1 = 16a_{0} + 15

So, I claim that my closed form solution is:

a_{n} = 2^{n}a_{0} + 2^{n} – 1

Try it. See if it works. What do you think?

Therefore,

a_{73} = 2^{73}a_{0} + 2^{73} – 1

Realized I typoed on this solution. Will fix it tonight

LikeLike

thanks for all the help, next time I post a problem I’ll put the due date so you don’t have to rush

LikeLike

I’m going to look this over tomorrow, I have only slept 10 hours since I got up sunday morning, thanks for everything, I’ll give it a loong look over tomorrow after work

LikeLike