Professional Documents
Culture Documents
1b. Multibuy Calculation Formula
1b. Multibuy Calculation Formula
the cost of buying X generators (accounting for the increasing costs), and calculating the
maximum generators purchaseable with your current cash. You can play around with the
numbers to see how things like the exponential multiplier affects purchasing power.
If you're curious about the derivation of the cost formula, it comes from the equation for the
sum of a geometric series, subtracting the sum from 1 to k from the sum from 1 to k+n. The
max formula then comes from setting that result to be less than the current cash and
massaging it to solve for n.