Support up to n = 2^32.