剩余算术

residue arithmetic