determine the number of line segments in the hundredth pattern
(its the triangle one, starts with one then two then three …..