I am stuck on this question...
from Skiena's algorithm design manual.
This is part of the solution
provided on his companion site.
I am unclear as to why adding 1 is necessary for the summation of k=j to i+j. I understand that the summation can further be broken down into the summation of k=1 to i+j minus the summation of k=1 to j, but I do not understand why 1 has to be added.