Fermat’s Little Theorem on the Tech Tree