Here is one of two proofs of $AM-GM$ inequality from book: "INEQUALITIES, cuadernos de olimpiadas de matematicas" by Radmila Bulajich, Jose Antonio, Rogelio Valdez:
(Improvised)
Let $A = \frac{a_{1}+...+a_{n}}{n}$. If $a_{1},a_{2},..,a_{n}$ are all equal, then we are done. But notice there will be at least two numbers such that $a_{i}<A$ and $a_{j}>A$. Because if all $a_{i}$s $>A$ or all $a_{i}$s $<A$ then we will get a contradiction.
Consider $n=4$. $A=(a_{1}+a_{2}+a_{3}+a_{4})/4$. Take two numbers, one less than $A$ and other one greater than $A$. Le this be $a_{1} = A-h$, $a_{2}= A+k$, with $h,k>0$. Notice that $a_{1}' = A$ and $a_{2}'=A+k-h$ will make $a_{1}+a_{2}=a_{1}'+a_{2}'$ but the product $a_{1}'a_{2}' > a_{1}a_{2}$.
$$ A = \frac{a_{1}+a_{2}+a_{3}+a_{4}}{4} = \frac{a_{1}'+a_{2}'+a_{3}+a_{4}}{4}$$
and $a_{1}'a_{2}'a_{3}a_{4} > a_{1}a_{2}a_{3}a_{4}$.
We can always repeat the same process and still create a number equal to $A$, and this process cannot be used more than $4$ times.
Same argument for $n$ numbers. We can always repeat the same process and still create a number equal to $A$, and this process cannot be used more than $n$ times.
Why is the above proves $AM-GM$? I don't quite understand the connection.
What the proof is doing is creating a sequence of sets of $\ n\ $ numbers \begin{align} \left\{a_{11}, a_{12},\right.&\left.\dots,a_{1n}\right\}\\ \left\{a_{21}, a_{22},\right.&\left.\dots,a_{2n}\right\}\\ &\vdots\\ \left\{a_{r1}, a_{r2},\right.&\left.\dots,a_{rn}\right\} \end{align} with the following properties:
It follows from these properties, that $$ \root{n}\of{a_1a_2\dots a_n}= \root{n}\of{a_{11}a_{12}\dots a_{1n}}> \root{n}\of{a_{r1} a_{r2}\dots a_{rn}}=A\ , $$ —that is, when $\ a_1, a_2, \dots,a_n\ $ are not all equal, their geometric mean is strictly larger than their arithmetic mean.