I want to find all the integer solutions for the following equation $2r = q^{r - 1}$ for $r\geq 1$ and $q$ an integer i.e., $q=2k$ for some natural number k not equal to zero.
I know that we should the ln function on both sides of the equation but how I will get the only solutions $q=4$ when $r=2$ and $q=2$ when $r=4$.
Could someone explain this to me please?
If $2r = q^{r - 1}$ for some natural numbers $r\ge1$ and $q$ then $r\ge2$, $q=2k$ for some integer $k\ge1$, and $$r=2^{r-2}k^{r-1}.$$