ukgwan,

if you try your formula , you'll see that it actually works. The problem is that to do yours, you need to know the values of and .

The textbook solution is quicker, because you just input n and get the answer directly.

Your not missing anything conceptual here, if you work out a formula for , and then subsititute it into your method, you will get the textbook answer.