I suddenly recalled one hard question (to me) in a math contest I participated in before. Fortunately I still completely remembered its context as follows:
Let $n$ be the least positive integer for which $149^n-2^n$ is divisible by $3^3\cdot5^5\cdot7^7$. Find the number of positive integer divisors of $n$.
I'm $100\%$ sure that I didn't manage to solve this back then, and right now I have already tried for half an hour but the triumph over this beast is still too far away from me.
What I know (really few) :
$149^n-2^n$ is apparently divisible by $147$, which is $3\cdot7^2$.
Therefore $n$ should be divisible by $3^2$ and $7^5$...... is that correct?
My Problem :
Unfortunately I don't know how to tackle the $5$ part. Maybe it has something to do with Fermat's theorem? Or am I missing out something important?
Any suggestions or hints will be much appreciated. Thanks. I am sorry if this is a bad post since I am not able to provide enough work of mine.