I have to calculate the following limit: $$\lim_{x \to 0} \left[\frac{a_1^x+a_2^x+\cdots+a_n^x}{n}\right]^{\frac{1}{x}}$$ I said that as $x→0$ the $a_1^x+a_2^x+\cdots+a_n^x$ are approaching $n$ since we have $n$ terms, so we will get: $$\lim_{x \to 0} \left[\frac{n}{n}\right]^{\frac{1}{x}}$$ $$\therefore \lim_{x \to 0} \left(1\right)^{\frac{1}{x}}$$ as $x→0$, $1/x→\infty$ $$\therefore \left(1\right)^{\infty}=1$$ But one friend said that it was a false way to calculate that limit, where is my error and what is it's solution?
(where $a_i$ are positive real numbers)