A note on periodic solutions at resonance