ChatGPT really seems to get the bit between its teeth about things that are totally wrong. And you can't correct it gently as you found, you have to slap it about a bit. Completely unsuitable for any mathematical or logical reasoning.