I have the formula:
$f(n) = \frac{p^n - q^n}{\sqrt 5}$
Assuming I know the value of $f(n)$, can I calculate $n$?
Sure, I can convert to $ \sqrt 5*f(n) = p^n - q^n$ . But after that I stuck...
edit 1
$p = \frac{1 + \sqrt 5}{2}$
$q = \frac{1 - \sqrt 5}{2}$
I don't think there is a general way of solving this exactly. You might be in luck with your specific values of $p$ and $q$, but i doubt it. Unless $f(n)$ is a Fibonacci number, I'd just go with approximations, numerical methods or online calculators like WolframAlpha for each specific value of $f(n)$.