Cox, N. (2007). Remainders, selections, sequences, extractions: uses of the modulus. The Stata Journal, 7, 143-145