As title says:
$$A^N - B^N = C,$$ $A,B,C$ are known, solve for $N$. This is substracted from a bigger formula where this N is one of the parameters to be calculated.
I have tried it with: $$X = A^Y \Rightarrow Y=\frac{\log(X)}{\log(A)}.$$ But this doesnt work for this version. I have been stuck on in for 8 hours already and a solution would really help me out. By calculating it by myself I tried the following: $A = 5$, $B = 2$.
For $C = 3$, $N = 1$.
For $C = 21$, $N = 2$.
For $C = 117$, $N = 3$.
But that's with simply filling in $N$. Which is not allowed since I need to find it by a algorithm/formula for a vision project.
Sorry for duplicate.