First calculate the sum $\sum _{i=1}^{n-1} = \frac {n(n-1)}{2}$. Then calculate the sum of all values in the array $A$. The missing element is the difference between these two numbers.