Geo. Series partial sum (real-world difficulty): ((x)^(n+1)-1)/((x)-1)= S where S < A
so here is my situation.
I have a number that , let's call it A, and I need to determine base of the exponent in a geometric series (see below) where the partial sum of the series will be as close to A as possible without exceeding it.
((x)^(n+1)-1)/((x)-1)= S where S < A
The problem is that in the this real-world application, each value of the geometric series is rounded, so to the best of my skill (which isn't much) standard math can't apply:
round(x^1)+round(x^2)+round(x^3)
I can use the partial sum of geometric series equation above to find some rough upper and lower limits. So say x=2 is a lower limit and x=2.04 is an upper limit... and the value i'm solving for is x=2.03948521.
Can anyone shed some light on this problem for me or suggest a way I can at least better calculate limits? This is for a computer programming application so I am hoping to use a recursive function to solve between the limits if there is no mathematical solution, but my method of finding the limits is probably wrong too so any help would be appreciated.
Thanks.
so here is my situation.
I have a number that , let's call it A, and I need to determine base of the exponent in a geometric series (see below) where the partial sum of the series will be as close to A as possible without exceeding it.
((x)^(n+1)-1)/((x)-1)= S where S < A
The problem is that in the this real-world application, each value of the geometric series is rounded, so to the best of my skill (which isn't much) standard math can't apply:
round(x^1)+round(x^2)+round(x^3)
I can use the partial sum of geometric series equation above to find some rough upper and lower limits. So say x=2 is a lower limit and x=2.04 is an upper limit... and the value i'm solving for is x=2.03948521.
Can anyone shed some light on this problem for me or suggest a way I can at least better calculate limits? This is for a computer programming application so I am hoping to use a recursive function to solve between the limits if there is no mathematical solution, but my method of finding the limits is probably wrong too so any help would be appreciated.
Thanks.