Modular Arithmetic on the Basilisk Tree