This thread is people discussing how ChatGPT works out the answers. It doesn't. It just connects text fragments from its training set together based on context. The training set is from the internet where these questions are regularly asked answered (often incorrectly).