Is there a formula or general for finding the number of segments that can be named by a given number of points on a line?

Your school subject is MATH.