wavefunction and energy for particle on ring