Quote:
Caduceus said:
Quote:
Agrajag said:
The formula is (N^2+N)/2
|
Sure, you could make it simple for me, but I enjoy calculating... No wait a second, I don't! Thanks!
|
Hehe, you're welcome

Just remember that its only for raising from 0 to N, if you raise it from K to N it will be (N^2+N-K^2-K)/2 (which is the cost for going from 0 to N minus the cost for going from 0 to K)
Also, that formula is basic mathematics, I think I officialy learned that on the eighth grade (which means I could do it myself even before

)