The problem is in the book Mechanics of Landau's lectures in theoretical physics
Find the ratio of the times in the same path for particles having different masses but the same potential energy. (page 22 second edition)
The problem doesn't give you much information but only the fact that the potential energy along the path remains the same. So the first (and only) thing that it is given is that $$U'=U$$ where $U$ is the potential energy.
My first attempt: Thinking in paths I tried to use the given relations $$t'/t = (l'/l)^{1-k/2}$$ $$E'/E = (l'/l)^k$$ and $$v'/v = (l'/l)^{k/2}$$ Where the above notations are respectively time, total energy and velocity. As he says any mechanical quantities at corresponding times are in a ratio which is a power of $l'/l$, I tried to find a relation for time and mass such that I know the answer of the problem is $t'/t = m'/m$ so, if we define
$$\bar{f} = \lim_{\tau \rightarrow \infty}\frac{1}{\tau}\int_{0}^{\tau}f(t)\mathrm{d}t$$ we can get that $$U' = U \Leftrightarrow \bar{U'} = \bar{U}$$
But this implies, because of the relation $\bar{U} = \frac{2E}{k+2}$ that $E' = E$ and that $\bar{T'} = \bar{T}$ so $$m'\bar{v'}^2 = m\bar{v}^2$$ such that we can put $m'/m = (v'/v)^{-2} = (l'/l)^{-k} = (t'/t)^{\frac{-k}{1-k/2}}$ so
How I get that $\frac{-k}{1-k/2} = \frac{1}{2}$? Am I doing something wrong? There is a more nice approach to the problem?
My second attempt: Thinking in paths I thought that if I could find $l$ and $l'$ explicitly, may be as a function that arises from the action, the problem became easier. Is this possible?