Lex with a Turing head, pondering Euler's identity