Since an automorphism of $\Bbb Z/p \Bbb Z, p$ prime, should map a generator of $\Bbb Z/p \Bbb Z$ to a generator of $\Bbb Z/p \Bbb Z$ it's enough to know how many generators does $\Bbb Z/p \Bbb Z$ have in order to calculate the number of automorphisms of $\Bbb Z/p \Bbb Z.$ Since $p$ is prime, this number should be $p-1.$
In the Algebra book (Lang) I was just reading that $\Bbb Z/p \Bbb Z$ has no automorphisms other than identity.
Can somebody explain what I missed here? Thanks.
As a group, $\Bbb Z/p\Bbb Z$ has $p-1$ automorphisms.
As a ring, $\Bbb Z/p\Bbb Z$ has $1$ automorphism.