ANALYZING MATHEMATICAL PATTERNS - DETECTION & FORMULATION