Given the facts:
(a) 2 is primitive root modulo 101
(b) $2^{50}+1$ isn't divisible by $101^{2}$
I have been asked to show that 2 is a primitive root modulo $101^{101}$.
How do I do that?
I started by defining $m:=\operatorname{ord}_{101^{101}}(2)$.
Then we get $2^{m}=1 \mod 101$. And from (a) we get $100\mid m$.
So in fact $m=100k$, and we would like to show that $k=101^{100}$, therefore $m=101^{100}\cdot100=\phi(101^{101})$.
That's what I have.