Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Problem with summation, how did he find this result?

  1. Oct 22, 2011 #1
    1. The problem statement, all variables and given/known data


    I was trying to understand an algorithm analysis problem and I came to this point:

    [PLAIN]http://img820.imageshack.us/img820/1834/unledytw.png [Broken]

    can someone explain me what he did there? Is there any other step between that should have been written in order for it to be more comprehensible?

    thanks in advance
    Last edited by a moderator: May 5, 2017
  2. jcsd
  3. Oct 22, 2011 #2
    There may be a relevant identity, but in any case you can write out the first double summation and rearrange the terms in order to get the second equality.

    (2/2 + 2/3 + ... 2/n) + (2/2 + 2/3 + ... 2/(n-1)) + ... + (2/2)
    = (n-1)*2/2 + (n-2)*2/3 + ... + 1*2/n

    All that remains is to convince yourself that this is actually what the second line reads.
  4. Oct 22, 2011 #3


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    You are summing over a triangle in the k-i plane:


    It is just like reversing the order of integration in a double integral. You can read the limits from the picture.
    Last edited by a moderator: May 5, 2017
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook