Number-theoretic methods in experimental designs