Few weeks ago I asked this problem in math.stackexchange.com. I got one answer, but soution mentioned in this answer uses only for big natural numbers. So thought about write this problem there. $$a = b^m$$ if $\displaystyle\frac{a^n-1}{b^n-1} \in \mathbb{Z} $ , $\forall n \in \mathbb{N}.$
This problem drives me crazy for a month. Help.