Recognizing Patterns and Sequences in Math