I have a simple series used to set trading quantities:
f(i) = a*b^i
We've been using it to make quantity steps, for example:
20*4^0 = 20
20*4^1 = 80
20*4^2 = 320
etc
a useful value for us is the sum of all terms for a specific exponent.
for example
f(0) = 20*4^0 = 20
f(1) = 20*4^0 + 20*4^1 = 100
f(2) = 20*4^0 + 20*4^1 + 20*4^2 = 420
etc
The exponent steps have always been integers, but I need now to make this more fine grained, so for example 1/4 intervals:
20*4^0.00 = 20
20*4^0.25 = 28
20*4^0.50 = 40
20*4^0.75 = 56
20*4^1.00 = 80
etc
however, I need to the sum of all the terms for a specific INTEGER exponent to be the same as above. for example, I had:
f(1) = 20*4^0 + 20*4^1 = 100
but now I have:
f(1) = 20*4^0.00 + 20*4^0.25 + 20*4^0.50 + 20*4^0.75 + 20*4^1.00 = 224
how can I rewrite the series so that for a given integer exponent and a given step (1/4 in my example), the sums match across all exponent values?