How does following assertion hold? I have tried some real values but can anyone explain it to me mathematically/algebraically? $$ a^{\log_{b}n} = n^{\log_{b}a} $$
I'm reading something that asserts this, but I do not see the connection. Any help would be appreciated.
taking the logarithm on both sides we have $$\log_b n\ln(a)=\log_b a\ln(n)$$ after this we have $$\frac{\ln(n)}{\ln(b)}\ln(a)=\frac{\ln(a)}{\ln(b)}\cdot \ln(n)$$