First of all, I never really learned exactly what Sigma notation is, and although I understand the basics, there are some things that are confusing me. I'm trying to convert the following algorithm to a sum so that I can find the time complexity:
for i <- 1 to n do
for j <- 1 to n do
for k <- i + j to 2n do
print(i, j, k)
Now I've been studying my professor's notes quite hard, and I've come up with the following: $$\sum\limits_{i=1}^n\sum\limits_{j=1}^i\sum\limits_{k=i+j}^{2n}c$$
However, in one of his (smaller) examples he put the following:
$$\sum\limits_{i=1}^n\sum\limits_{j=1}^i1$$
where 1 was used instead of a value c. What is the difference between this?
Also, how should I get started on simplifying this? I am having difficulty getting started.
To clarify, I do not want the final answer, as I'm trying to learn what is happening here. Thanks!