In my Artificial Intelligence class, I encountered this equation where I have to solve for b, the effective branching factor of a tree:
N = 1 + b^1 + b^2 + .... + b^d
I have the number N, how do I solve for b?
I was given a hint that this could be solved using interpolation but I don't really understand how. My understanding of interpolation is where one tries to fit a function given some points. In this case, it's the other way around, there is a function but no points.
As Raskonkikov says, $1+b+b^2+\ldots+b^d = (b^{d+1}-1)/(b-1)$. You can now generate values of the RHS for various $b$ until they get greater than $N$-it won't take long. Say $N=1{,}000{,}000, d=6.\ \ $ You find that $b=9$ gives $N=597{,}871$, while $b=10$ gives $N=1{,}111{,}111$. A linear interpolation gives $b=9+\frac{1{,}000{,}000 - 597{,}871}{1{,}111{,}111-597{,}871}\approx 9.784$ For a more exact answer, you can submit this to a root finder. Wolfram Alpha gives 9.823.