Thermal convection with spatially periodic boundary conditions: resonant wavelength excitation