On exponentiation ofn-ary algebras