He proves by algebra that Hamlet's grandson is Shakespeare's grandfather and that he himself is the ghost of his own father
Text:
Mulligan sarcastically makes a muddle of Stephen's Hamlet theory, making Haines confused as to whether Hamlet or Stephen is referred to as the ghost of his own father.