Simplified arithmetic modulo