Hey guys, i'm a little baffeled by a few questions, if you could give me some tips on them:
1) [Solved!!] -> still working on 2 tho. I've got part b and a foot hold on a but... stupid big oh makes no sense
Let H(n) = sum(1/k,k,1,n)
Prove using induction that sum(H(k),k,1,n) = (n+1)H(n) - n
I started working this out but started to fiddle with both sides and that screwed up the proof the first time. Afterwords, I just get stuck. I know induction is prove base case [in this, base case is when n = 1] , then assume f(n) is true and prove f(n+1), but i can't get anywhere on this one... grr
2) Define f(n) ~< g(n) if f(n) is in O(g(n)). Define lg(n) as log base 2 of n. Define log(n) as log base 10 of n
a) prove that n lg(n) ~< n ^(10/9) but n^(10/9) is not ~< n lg(n)
b) Prove that log(n) ~< lg(n)
I kinda understand big O. I know that its defined as: if g(x) is the big O of f(x), then f(x) <= c * g(x) for some constant c, with x>k for some k
But i have no clue where to go from here... bah
1) [Solved!!] -> still working on 2 tho. I've got part b and a foot hold on a but... stupid big oh makes no sense
Let H(n) = sum(1/k,k,1,n)
Prove using induction that sum(H(k),k,1,n) = (n+1)H(n) - n
I started working this out but started to fiddle with both sides and that screwed up the proof the first time. Afterwords, I just get stuck. I know induction is prove base case [in this, base case is when n = 1] , then assume f(n) is true and prove f(n+1), but i can't get anywhere on this one... grr
2) Define f(n) ~< g(n) if f(n) is in O(g(n)). Define lg(n) as log base 2 of n. Define log(n) as log base 10 of n
a) prove that n lg(n) ~< n ^(10/9) but n^(10/9) is not ~< n lg(n)
b) Prove that log(n) ~< lg(n)
I kinda understand big O. I know that its defined as: if g(x) is the big O of f(x), then f(x) <= c * g(x) for some constant c, with x>k for some k
But i have no clue where to go from here... bah
