people talked about modular arithmetic in many ancient cultures. for instance, the chinese remainder theorem is many centuries old. the modern notation and exact definition of modular arithmetic were first described by carl friedrich gauss.