For the following algorithm find the number of times the addition operation (+) is executed during the running of the program. Answer the question by giving a formula in terms of n:
for i := 1 to n do
for j := 1 to i do x := x + f(x) od;
x := x + g(x)
od
An algorithm is analyzed. The response received a rating of "5" from the student who posted the question.