Computing $\sqrt{2}$ with FRACTRAN
Khushi Kaushik, Tommy Murphy, David Weed
TL;DR
The paper addresses computing the decimal expansion of $sqrt{2}$ within the FRACTRAN framework by presenting two constructions: a Catalan-product-based program ($sqrt{2}$GAME) and a Newton–Raphson-based program (NR$sqrt{2}$GAME). It shows a simpler proof strategy that parallels Conway's PIGAME, yielding digit extraction with a clear truncation bound and a transferable approach to $pi$ via PIGAME. The results include a detailed flowchart-to-FRACTRAN translation and an error-analysis argument ensuring that the truncated approximations determine the correct digits. The work highlights how embedding standard numerical algorithms in FRACTRAN exposes a clean state-encoding and paves the way for more efficient or alternative encodings of classical computations within a minimalistic, Turing-complete language.
Abstract
The FRACTRAN programs $\sqrt{2}$GAME and NR$\sqrt{2}$GAME are presented, both of which compute the decimal expansion of $\sqrt{2}$. Our $\sqrt{2}$GAME is analogous to Conway's PIGAME program. In fact, our proof carries over to PIGAME to produce a simpler proof of Conway's theorem as well as highlight how the efficiency of the program can be improved. NR$\sqrt{2}$GAME encodes the canonical example of the Newton--Raphson method in FRACTRAN.
