Im very confused with problem and i hope you can help me.

How to calculate the nth term of the fallowing sequences, giving the answer in the form p/q, where p, q ∈ Z

log_{1/5}(125) , log_{1/125}(125) , log_{1/625}(125)

log_{4}(64) , log_{8}(x) , log_{32}(64)

Also describe how to obtain the third answer in each row from the first two answers.