Modular Arithmetic on the Tech Tree