There is a exercise in Algorithm design and applications (Goodrich) that I don't understand. It says:
What is the amortized running time of the operations in a sequence of n operations $P=p_1p_2 \cdots p_n$ if the running time of $p_i$ is $\Theta(i)$ if i is a multiple of 3, and a constant otherwise.
I've read upon amortization and the accounting method. But I don't understand what $\Theta(i)$ is, because for $p_3$ it is $\Theta(3)$, but isn't that also in constant time?
I'm suppose that the task is to sum the running time of each operation up, and possibly divide by the number of operations. In order to find the amortized running time.