Quote (CamelFinger @ Apr 20 2014 07:49pm)
This is what I need to do, unless someone can prove it easier via algebra
but yes the problem is to prove/disprove that for integers n that are equal to or greater than 2, square root of n is less than [(1/(square root 1)) + (2/(square root 2)) + ... (n/(square root n))]
like fenur said, it's trivial. i assume you can do your base case just fine.
what you're left with is:
rt(n) <= sum(rt(i) for i = 1 to n)
rt(n+1) <= sum(rt(i) for i = 1 to n) + rt(n+1)
now cancel out rt(n+1) from both sides
0 <= sum(rt(i) for i = 1 to n)
and we know the sum on the right is positive, so we know it's true.