For a simple lattice consisting ions with equal and opposite charge in a 1:1 ratio, interactions between one ion and all other lattice ions need to be summed to calculate EM, sometimes called the Madelung or lattice energy:
