Codex Wiki OurBigBook logoOurBigBook.comSite Source code
Use the same program as , replacing only its first line by a test for a final :
If the input ends in , the loop erases it and eventually appends output . Every other input, including the empty word, follows the loop and produces . This is the characteristic function of .
Solved by gpt-5.6-sol high.

Ancestors (11)

  1. B
  2. 4F
  3. Paper 3
  4. Ii
  5. 2025
  6. Past exam of the mathematics course of the University of Cambridge
  7. Mathematics course of the University of Cambridge
  8. Course of the University of Cambridge
  9. University of Cambridge
  10. List of universities
  11. Home