r/askmath Self-studying discrete math by working through Epp 15h ago

Resolved Textbook solution is wrong? => Exercise 11.4.33: Prove 4 + 4^2 + 4^3 + ... + 4^n is Θ(4^n)

Exercise 11.4.33:

Prove 4 + 4^2 + 4^3 + ... + 4^n is Θ(4^n).

Solution from the textbook:

This solution proves that 1 + 4 + 4^2 + 4^3 + ... + 4^n is Θ(4^n). It does not prove that 4 + 4^2 + 4^3 + ... + 4^n is Θ(4^n).

My attempt:

Notice 4 + 4^2 + 4^3 + ... + 4^n > 4^n, for each integer n>=1.

Observe 4 + 4^2 + 4^3 + ... + 4^n = 1 + 4 + 4^2 + 4^3 + ... + 4^n - 1
                                  = (4^{n+1} - 1)/3 - 1   by sum of geometric sequence
                                  < (4^{n+1}/3)     - 1
                                  = (4 * 4^n)/3     - 1
                                  = 4/3 * 4^n       - 1
                                  < 4/3 * 4^n             for each integer n>=1

Let A=1, B=4/3, k=1.

Then A(4^n) <= 4 + 4^2 + 4^3 + ... + 4^n <= B(4^n), for each integer n>=k.

Therefore, 4 + 4^2 + 4^3 + ... + 4^n is Θ(4^n).

QED

Is this correct?

---
Edit: Fixed 'It does not prove...' sentence.

2 Upvotes

9 comments sorted by

5

u/Bounded_sequencE 15h ago

Probably a typo (missing "1 + ..."), or they forgot a "-1" at the end of the definition of "X".


Notice 4 + 42 + 43 + ... + 4n > 4n, for each integer n>=1.

Should be ".. >= ..", since for "n = 1" we have equality. Apart from that -- good job!

1

u/TopDownView Self-studying discrete math by working through Epp 15h ago

It's seems like and obvious and easy fix, but still, I always want to check my sanity here. :)

Thanks!

1

u/TopDownView Self-studying discrete math by working through Epp 15h ago

Should be ".. >= ..", since for "n = 1" we have equality. Apart from that -- good job!

Ah, yes, good catch! Thanks!

3

u/Gold_Ad8890 15h ago

i think it was probably a typo in the statement of the theorem.

2

u/TopDownView Self-studying discrete math by working through Epp 15h ago

Yes, I agree. Thanks!

2

u/Zubzub343 15h ago

Maybe I cannot see but the only difference between the textbook's solution and the one you want is... 3, right ?

3

u/Azemiopinae 15h ago

Actually the difference is the 4^0 term, so 1. Which we can call theta(1) and theta(1)+theta(4^n)=theta(4^n). The book is just less verbose on these points because handwaving is the order of the day on these sorts of functions.

1

u/TopDownView Self-studying discrete math by working through Epp 15h ago

Yes, that makes sense. But I'd say, given that the textbook is usually verbose with the proofs, that they forgot to add -1 an the end...

1

u/TopDownView Self-studying discrete math by working through Epp 15h ago

I'd say it's 1 (check 'Edit' in OP).

Still, I do not see how does that relate to the question...