Slit the cylinder vertically from the ants starting point and flatten out. Now take n copies of the flattened cylinder and place them side by side.

The shortest path on the cylinder is equivalent to a diagonal on the rectangle made out of n flattened copies of the cylinder.

RonL