On the spectrum of an anharmonic oscillator