Then 3a - a^2 = 0, and 3Z has no zero divisors, so factoring the equation gives a=0 or a=3.
Then, if σ(3)=a=0, then σ(x)=0 for all x in 3Z, and σ is the zero homomorphism.
If σ(3)=a=3, then σ(x)=x for all x in 3Z, and σ is the identity homomorphism.
Hence there there two ring homomorphism for...