Note that the number of zeros at points between the boundaries is . There is a theorem that says that this should be the case for any potential well. (See e.g. Landau & Lifshitz)