What will be the one's digit of the remainder in: $\left|5555^{2222} + 2222^{5555}\right|\div 7=?$ What will be the ones digit of the remainder in: $$\frac{\left|5555^{2222} + 2222^{5555}\right|} {7}$$

This is not a solution. I was trying to find out the possible values of $n$ such that $${\underbrace{22\cdots22}_{n\text{ digits }}}^{\underbrace{55\cdots55}_{n\text{ digits }}}+{\underbrace{55\cdots55}_{n\text{ digits }}}^{\underbrace{22\cdots22}_{n\text{ digits }}}$$ is divisible by $7$.
Let $$\underbrace{11\cdots11}_{n\text{ digits }} =\frac{10^n-1}9=M$$ 
Clearly $M$ is odd.
Now, $$(2M)^{5M}+(5M)^{2M}\equiv (2M)^{5M}+(-2M)^{2M}\pmod 7\equiv (2M)^{5M}+(2M)^{2M}=(2M)^{2M}\{(2M)^{3M}+1\}$$ which will be divisible by $7$
if (i) $7\mid \{(2M)^{3M}+1\}\iff 7\mid \{M^{3M}+1\}$ as $2^3\equiv1$
$\iff 7\mid \{\left(\frac{10^n-1}9\right)^{3M}+1\}\iff 7\mid \{(10^n-1)^{3M}+1\}$ as $9^3=3^6\equiv1\pmod 7$
So, we need $(10^n-1)^{3M}\equiv-1\pmod 7\implies (10^n-1)^3\equiv-1$ as $3M\equiv3\pmod {\phi(7)}$ as $M$ is odd.
Taking Discrete Logarithm wrt a primitive root $3\mod 7,$
$3\cdot ind_3(10^n-1)\equiv 3\pmod 6=6c+3$ for some integer $c$
So, $$ ind_3(10^n-1)=2c+1$$
So, $10^n-1\equiv 3^{2c+1}\pmod 7\equiv 3,6,5\iff 10^n\equiv4,6,7\pmod7$
$10^n\not\equiv7\pmod 7$ as $(10,7)=1$
$10^1\equiv3,10^2\equiv3^3\equiv2,10^3\equiv2\cdot10\equiv6,10^4\equiv2^2=4,10^5\equiv2\cdot6\equiv5,10^6\equiv 6^2\equiv1\pmod 7$
So, $n\equiv3,4\pmod 6$
or if (ii)$7\mid (2M)^{2M}\iff 7\mid M^{2M}\implies 7\mid M\implies 10^n\equiv1\pmod 7\iff 6\mid n$ 
So, if $n\equiv0,3,4\pmod 6,$ $${\underbrace{22\cdots22}_{n\text{ digits }}}^{\underbrace{55\cdots55}_{n\text{ digits }}}+{\underbrace{55\cdots55}_{n\text{ digits }}}^{\underbrace{22\cdots22}_{n\text{ digits }}}$$ is divisible by $7$.
