Analytic solution of scattering by an array of conducting spheres