Equality of Number-Theoretic Functions over Consecutive Integers