The power mapping as endomorphism of a group