I have been thinking over this problem for a few days now and am hung up on calculating the number of times the second nested for-loop will run. I believe that I have the correct formula for determining the running time for the other two for-loops, but this third one has me hung up. I have the first loop running n-1 times. The equation to determine the number of times loop #2 runs is; The summation of 1 to n-1. If anyone could help me understand how to find the number of times loop #3 runs it would be greatly appreciated.
for ( int i=1; i<=n-1; i++ ) {
for ( int j=i+1; j<=n; j++ ) {
for ( int k=1; k<=j; k++ ) {
}
}
}