Math, on the other hand, has no definition that is generally accepted but patterns are used in the formulation of…