With a given $n$ and I am trying to find the value of $x$, as in: $$Fib(x)=n$$
Using the formula for Fibonacci sequence, where $\varphi$ is the Golden Ration ($\approx1.61803399\ldots$) $$Fib(z) = \frac{\varphi^z - \cos(z \pi)\varphi^{-z}}{\sqrt{5}}$$ How can I find $x$ if, lets say, $n=11261957$? I so far have this: $$\varphi^x-\cos(x\pi)\varphi^{-x}=\sqrt{5}(11261957)$$
But I don't know where to go from there. Any help is appreciated!
From $$\phi^x - \cos(x\pi)\phi^{-x} = 11261957\sqrt{5}$$ we can assume that $\phi^{-x}$ is small and get $$\phi^x \approx 11261957\sqrt{5}$$ The solution to this is $$x \approx \frac{ln(11261957\sqrt{5})}{ln(\phi)} \approx 35.414$$ and indeed the $35^\text{th}$ and $36^\text{th}$ Fibonacci numbers are $$9227465 \qquad \text{and} \qquad 14930352$$ which are as close as you can get to $11261957$.