chatgpt is stunningly bad at math if you rephrase it as a programming question, it will tend to give way better results (eg, telling it to write a program to figure it out, it'll often give a correct program)