Reading that out loud it says that n is the number that, raised over (1+k), equals y/x. Assuming, like the poster above said, that you meant y = x*[(1+k)^n].
Maybe a more direct way to do it would be using the property:
log_a(a^b) = b
So taking the logarithm base (1+k) to both sides of y/x = (1+k)^n would also yield the same answer. But in general calculators don’t have arbitrary log basis so this property comes handy too:
log_a(b) = log(b)/log(a) for any log basis on the right side.