Modular Equations and Lattice Sums