Repeatedly sum the numerical digits of a nonnegative integer in base until a single numerical digit remains. For , the result is , while the result for zero is zero. This follows because , so summing numerical digits preserves the integer congruence class modulo .