Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Θ notation for the sum of a geometric series

I have a question about geometric series. Why is

1 + c + c2 + ... + cn = Θ(cn)

when c > 1? I understand why it is Θ(n) if c = 1 and it is Θ(1) if c < 1, but I just can't figure out why it is Θ(cn) if c>1.

Thanks!

like image 560
user308553 Avatar asked Jan 20 '12 02:01

user308553


People also ask

How do you write the sum of a geometric series?

The sum of the first n terms of a geometric sequence, given by the formula: Sn=a1(1−rn)1−r, r≠1. An infinite geometric series where |r|<1 whose sum is given by the formula: S∞=a11−r.

What does the sum of a geometric series mean?

Sum of Geometric Series: A geometric series is a series where each subsequent number is obtained by multiplying or dividing the number preceding it. The sum of the geometric series refers to the sum of a finite number of terms of the geometric series.


2 Answers

The sum of the first n terms of the geometric series

c0 + c1 + ... + cn-1

is given by the quantitiy

(cn - 1) / (c - 1)

Note that if c > 1, then this quantity is bounded from above by cn - 1 and from below by cn-1 - 1 / c. Therefore, it is O(cn) and Ω(cn), so it is Θ(cn).

Hope this helps!

like image 137
templatetypedef Avatar answered Sep 16 '22 22:09

templatetypedef


Let c > 1 and g(c) = 1 + c + c2 + ... + cn.

The first thing to realize is that for some n we have S(n) = (cn+1 - 1) / (c - 1) where S(n) is the sum of the series.

So we have that (cn+1 - cn) / (c-1) <= (cn+1 - 1) / (c - 1) = S(n) since cn >= 1.

So (cn+1 - cn) / (c-1) = (cn(c-1)) / (c-1) = cn <= S(n)

Thus we have that S(n) >= cn.

Now that we have found our lower bound, let's look for the upper bound.

Observe that S(n) = (cn+1 - 1) / (c - 1) <= (cn+1) / (c - 1) = ((cn) c) / (c -1).

To simply our view of the algebra a bit, let y = c / (c-1) and substitute it into the equation above.

Hence, S(n) <= y * cn where y is just some constant since c is! This is an important observation since now it is just a multiple of cn.

So now we have found our upper bound as well.

Thus we have cn <= S(n) <= y * cn.

Therefore, S(n) = Θ(cn) when c > 1.

like image 26
Derek W Avatar answered Sep 18 '22 22:09

Derek W