Someone on stackoverflow asked a question about tracking score in their game with a Fibonacci like sequence, just starting at different values $(F_1 = 50,~ F_2 = 100)$. I know there's a formula to calculate Fibonacci numbers (based on Wikipedia) but I'm not familiar with most of the math that formula is based on.
Is there a way to adjust the formula to be used with these new initial conditions?
If a sequence $(G_n)$ is given by $G_1=a$, $G_2=b$, $G_n=G_{n-1}+G_{n-2}$ for $n\ge 3$, then $$G_n=a F_n + (b-a) F_{n-1}$$ where $F_n$ is the $n$-th Fibonacci number, with $F_0=0$, $F_1=1$, $F_2=1$, etc.
Thus, your sequence is $G_n = 50 F_n + 50 F_{n-1} = 50 F_{n+1}$.
To find $n$ given $G_n$, adapt the formula you already know: $$ n = \bigg\lfloor \log_\varphi \left(\frac{G_n}{50}\cdot\sqrt{5} + \frac{1}{2} \right)\bigg\rfloor-1. $$ However, to apply this formula for large numbers, you'll probably need high-precision approximations of $\varphi$ and $\log$ to find $\log_\varphi(x)=\log(x)/\log(\varphi)$.