Automorphism group of a polynomial ring and algebraic group action on an affine space