On the addition of residue classes modp