C0, C1, C2,..., Cm
| C0 | = | Credit balance before the first operation | |
| Ci | = | Credit balance after operation i |
choose the credit balance function Ci so as to make the amortized costs ai as nearly equal as possible, no matter how the actual costs may vary.
We have
| ti | = | ai - Ci + Ci - 1 | |
| Hence |
= | (a1 - C1 + C0) + (a2 - C2 + C1) + ... + (am - Cm + Cm - 1) | |
| = |
Thus