\sum_{i=0}^n a_i10^i\equiv \sum_{i=0}^n a_ir_i\ (mod\ m)