Oscillatory solutions of the BCS gap equation