A few days ago, EcoDTR posted a question about a number series to which Soroban made a reply including this statement:
Can you elaborate a little bit on how to solve for x in the case of a finite power series? I.E. 1 + x + x^2 + x^3 + ... + x^24 + x^25 + x^26 = y?If the problem was actrually: 1 + x + x^2 + x^3 + ... = 5
. . we can solve for x . . . otherwise, forget it!
For y=244, I know the answer is approximately 1.1413211694 through trial and error using my computer to run out the summation as I plugged in numbers. Now I'd like to know the math behind why that is the answer or how I can calculate x given a known y. Any pointers?
If Descartes rule of signs tells us that this has either 0 or 2 positive roots. But is always a root of (which may not be a solution for technical reasons), which guarantees that there is at least one other positive root, and this is the solution we seek (it may also be 1).
It may be necessary to find it numerically but it does exist.
If , there are no solutions.
If , then is the solution.
I'll think about non-positive later.
Interestingly, I arrived at my question in trying to fit a geometric series between two known y values and used various substitutions to arrive at which can be reduced to by factoring the out of the numerator to get rid of the denominator. I managed to find a declaration of this equality in my old Calculus textbox, but no mention of the ability or inability to solve for x.
I ended up writing a simple program to work out the first 256 values of x for the integer values of y from 1 to 256, but it seemed like a clunky way to get the numbers I was after. I would much rather have identified a workable formula than do lookups in a chart. When I saw the post by Soroban, I recognized it as related to my series and was hoping there might have been a formula I had missed.
Thank you both for your time,