The wave function is a sine function that goes to zero at the boundaries of a region of length a.
Therefore, there must be an integral (1, 2, 3...) number of half-wavelengths in a region a.
That is, a = integer*wavelength/2, or wavelength = 2a/integer.
For the ground state, the integer...