#41 is 0.25" between side plates. #40 is 0.312". So as long as your chain is not too narrow for the sprocket, you should be fine. The pitch is the same.
Yup as ezcome ezgo said it will work,use a grinder with a buffing pad and just lightly grind down both sides of the sprocket till it has enough clearance!