A note on nonlinear oscillations at resonance