If you wanted something to do math you'd make something more like a pocket calculator. ChatGPT's real competence is in picking the most plausible, not necessarily the most correct, next word. That is how it is able to hypnotize people into skimming past its mistakes.
That can get you really far in English class or maybe social studies but it can't get you far in a field like math where you can really say something is wrong or right without any reservations.
Note that reasoning about math is fundamentally problematic because of
https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_...
because there is no algorithm that can tell, 100%, if a mathematical statement is satisfiable. It took mathematicians almost 375 years to prove, for instance, that
x^n + y^n = z^n
is unsatisfiable for x,y,z all positive integers > 0 and n a positive integer > 2. You'd like to be able to ask a math AI to try and solve an equation like that or to prove it has no solutions but there is no algorithm that is going to solve that in a finite amount of time. It's fair for something to go looking for solutions and either keep going till you tell it to stop, or maybe stop at a certain point and tell you something about what it ruled out.
This book
https://en.wikipedia.org/wiki/G%C3%B6del,_Escher,_Bach
has a number of dialogues between Achilles and the Tortoise where they try to build an impossible machine and take a long time to understand what they're trying to do is impossible. Some people see it as an indictment of symbolic A.I. that fundamentally revolves around logic but I see the problems as having to do with philosophy, logic and the limitations of "truth" (you might even say the word "truth" is a bad word if the intro of the X-Files can claim that "the truth is out there" or that it can be composed into a name like "Truth Social".) That is, it is not a limitation of the technology you are using, it is a problem with the problem you are trying to solve.