Electrostatic potential energy stored in a system of point charges (from wikipedia)
The electrostatic potential energy $U_E$ stored in a system of N charges q1, q2, ..., qN at positions r1, r2, ..., rN respectively, is:
$U_\mathrm{E} = \frac{1}{2}\sum_{i=1}^N q_i \Phi(\mathbf{r}_i) = \frac{1}{2} \sum_{i=1}^N q_i \sum_{j=1}^{N(j\ne i)} k_e \frac{q_j}{r_{ij}}$
where does the term $1\over2$ comes from?
Thank you