Find all positive integers $n$ and $m$ such that $(125\times2^n)-3^m=271$
I have thought about this question for a long time and I can't seem to solve it. I realize that $271$ is a prime and so I'm tried to factor the LHS but couldn't. I came to the conclusion that n is odd and m is equivalent to $2$ modulo $4$ by using modulo $3$ and $5$ respectively. Any help would be appreciated.