For how many natural numbers (0 not included) $n \leq 100$ is $1111^n +2222^n+3333^n+4444^n$ divisible by 10?
I factored out $1111^n$ and got $1111^n(1+2^n+3^n+4^n)$. So $1+2^n+3^n+4^n$ must be divisible by 10. I figured out that this is divisible by 10 for all odd n, but I don't know how to find the other solutions, if any.
If $\varphi$ is Euler's totient function, $\varphi(10)=4$. So the exponents are cyclic mod $10$ with a period of $4$. So it suffices to consider $n=1,2,3,4$. Clearly $n=1$ works; for $n=2$, we have $1111^2\cdot 30$; for $n=3$, we have $1111^3\cdot 100$; for $n=4$, we have $1111^4\cdot 354$. So there are $75$ solutions.