Sumsabcd
Sumsabcd
P. Sam Johnson
September 5, 2015
P. Sam Johnson
September 5, 2015
1/32
Overview
In the lecture, we disucss a notation for sum and general techniques that
make summation user-friendly.
The following methods are discussed.
repertoire method
summation factor method
perturbation method.
P. Sam Johnson
September 5, 2015
2/32
ak
k=1
September 5, 2015
3/32
This notation tells us to include in the sum precisely those terms ak whose
index k is an integer that lies between the lower and upper limits 1 and n,
inclusive. In words, we sum
P over k, from 1 to n. Joseph Fourier
introduced this delimited -notation in 1820, and it soon took the
mathematical world by storm.
September 5, 2015
4/32
Generalized sigma-notation
A generalized sigma-notation is even more useful than the P
delimited
form. We simply write one or more conditions under the , to specify
the set of indicies over which summation should take place. It can be
written as
X
an .
1kn
For example, we can express the sum of the squares of all odd positive
integers below 100 as follows:
X
k 2.
1k<100
k odd
P. Sam Johnson
September 5, 2015
5/32
is more cumbersome and less clear. Similarly, the sum of reciprocals of all
prime numbers between 1 and N is
X 1
.
p
pN
p prime
X 1
,
pk
k=1
where pk denotes the kth prime and (N) is the number of primes less
than or equal to N.
P. Sam Johnson
September 5, 2015
6/32
1k+1n
it is easy to see what is going on, and we can do the substitution almost
without thinking. But with the delimited form, we have
n
X
k=1
ak =
n1
X
ak+1
k=0
it is harder to see what has happened, and we are more likely to make a
mistake.
P. Sam Johnson
September 5, 2015
7/32
ak
k=1
ak
1kn
P. Sam Johnson
September 5, 2015
8/32
Formally, we write
X
ak
P(k)
P. Sam Johnson
September 5, 2015
9/32
k(k 1)(n k)
k=2
instead of
n
X
k(k 1)(n k)
k=0
September 5, 2015
10/32
in the form
X
ak [P(k)].
P. Sam Johnson
September 5, 2015
11/32
P. Sam Johnson
September 5, 2015
12/32
P. Sam Johnson
September 5, 2015
13/32
for n > 0.
September 5, 2015
14/32
Repertoire method
This method tells us to try plugging in simple funcions on Rn , hoping to
find constant parameters , and , where the solution is especially
simple.
Rn = 1
Rn = n
Rn = n 2
= 1, = 0 =
= 0, = 1, = 0
= 0, = 1, = 2
Thus Rn = + n +
A(n) = 1
B(n) = n
C (n) B(n) = n2
2
hence 2C (n) = n 2+n
n2 +n
2 .
Exercise
1
Pn
k=0 (a
September 5, 2015
15/32
Summation Factor
Consider the tower of Hanoi recurrence
T0 = 0
Tn = Tn1 + 1,
for n > 0.
(1)
(1) is rewritten as
T0 /20 = 0
Tn /2n = Tn1 /2n1 + 1/2n ,
for n > 0.
for n > 0.
Hence
Sn =
n
1 n
X
1
.
=
1
2
2k
k=1
Thus Tn =
P. Sam Johnson
2n Sn
2n
1.
Sums and Recurrences
September 5, 2015
16/32
n
X
sk ck = s1 b1 T0 +
k=1
n
X
sk c k .
k=1
P. Sam Johnson
September 5, 2015
17/32
September 5, 2015
18/32
Cn = (n + 1) +
2X
Ck ,
n
for n > 0.
(2)
k=0
September 5, 2015
19/32
nCn = n + n + 2
n1
X
Ck ,
for n > 0.
k=0
sign, we have
(n 1)Cn1 = (n 1)2 + (n 1) + 2
n2
X
Ck ,
for n > 1.
k=0
Hence
nCn (n 1)Cn1 = 2n + 2Cn1 ,
for n > 1.
P. Sam Johnson
for n > 0.
September 5, 2015
20/32
n
X
k=1
1
.
k +1
The sum
n
X
k=1
1
k +1
September 5, 2015
21/32
Cn in terms of Hn
We can express Cn in terms of Hn as follows:
n
X
k=1
1
k +1
X
1kn
1
k +1
X
1k1n
X
2kn+1
1
k
1
k
X 1
1
1+
k
n+1
1kn
= Hn
n
.
n+1
September 5, 2015
22/32
X
1
n=1
September 5, 2015
23/32
P. Sam Johnson
September 5, 2015
24/32
Eulers constant
Gn+1 Gn = [Hn+1 log(n + 1)] [Hn log n]
1
n
=
+ log(
)
n+1
n+1
1
1
=
+ log(1
)
n+1
n+1
1
1
1
1
=
< 0.
2
n + 1 n + 1 2(n + 1)
3(n + 1)3
Therefore (Gn ) is decreasing and bounded above, hence it converges.
d
(x)]x=1 = = 0.577215664. The Gamma
Euler showed that [ dx
function is defined by
Z
e t t x1 dt (x > 0)
(x) =
0
September 5, 2015
25/32
Manipulation of Sums
The key to success with sums is an ability to change one
that is simpler or closer to some goal.
into another
Let k be any finite set of integers. Sum over the elements of k can be
transformed by using 3 single rules.
X
cak = c
kK
X
kK
(ak +bk ) =
kK
ak
ak +
kK
ak =
kK
P. Sam Johnson
X
p(k)K
p(k)
X
kK
bk
September 5, 2015
26/32
0kn
0kn
Hence
X
S=
0kn
bn
a + (a + bn)
(a + bk) = a +
(n + 1) =
(n + 1),
2
2
the average of first and last terms times the number of terms.
P. Sam Johnson
September 5, 2015
27/32
for n 0
1kn
P. Sam Johnson
September 5, 2015
28/32
and
X
Sn+1 =
ak = a0 +
0kn+1
Sn+1 =
ak
1kn+1
ak
1kn+1
ak+1
1k+1n+1
Sn+1 =
ak+1
0kn
September 5, 2015
29/32
Exercises
2 Find the sum of the following recursions by permutation method.
(a)
ax k
(b)
0kn
k2k
0kn
(c)
kx k .
0kn
xk =
1 x n+1
1x
kx k1 =
1 (n + 1)x n + nx n+1
.
(1 x)2
September 5, 2015
30/32
Exercises
Find the following sums.
3
n
X
nk
(1)
k=0
P. Sam Johnson
n
X
(1)n1 k
k=0
n
X
(1)n1 k 2 .
k=0
September 5, 2015
31/32
References
1
6
P. Sam Johnson
September 5, 2015
32/32