By the AM–GM inequality, for any positive \( a \): \[ 1 + a + a^2 \ \ge \ 3\sqrt[3]{a^2} \]
\[ \frac{1 + a + a^2}{a} \ \ge \ 3\sqrt[3]{a} \]
For: \[ E = \prod_{i=1}^n \frac{1 + a_i + a_i^2}{a_i} \] we have: \[ E \ \ge \ \prod_{i=1}^n 3\sqrt[3]{a_i} \]
\[ E \ \ge \ 3^n \cdot \sqrt[3]{\prod_{i=1}^n a_i} \] Since all \( a_i > 0 \), the cubic root is positive.
If all \( a_i \) are not equal, then the AM–GM inequality is strict, so: \[ \boxed{E > 3^n} \]