The first task is to show that $101^2$ does not divide $2^{50}+1$.
For this I first found out that $2$ is a primitive root modulo $101$, by just looking at the power of $2$.
I assume by contrary that $101^2$ divides $2^{50}+1$, so $2^{50}= -1 \pmod {101^2}$.
On the other hand, by calculation of powers of $2$: $2^{25}= 10 \pmod {101}$, so $2^{25} = 10+ 101k$, and $2^{50}= 100 + 2020k \pmod {101^2}$.
We get that $100 + 2020k = -1 \pmod {101^2}$, but I am not sure how that causes a contradiction.
The second task is to show that $2$ is a primitive root modulo $101^{101}$.
Since $\phi(101) = 101^{100} * 100$, I need to show that this is the order of $2$.
I can use that $2$ is a primitive root of $101$ to get that $2^n \neq 1 \pmod {101^{101}}$ for $n < 100$, but I don't know how to follow from here.
Help would be appreciated.