Curve on a cylinder and its osculating planes