Limitations of Mathematical Reasoning in AI Models