Learning Beyond Pattern Matching? Assaying Mathematical Understanding in LLMs