Let Z/nZ\mathbb{Z} / n \mathbb{Z}Z/nZ denote the set of integers considered modulo nnn (hence Z/nZ\mathbb{Z} / n \mathbb{Z}Z/nZ has nnn elements). Find all positive integers nnn for which there exists a bijective function g:Z/nZ→Z/nZg: \mathbb{Z} / n \mathbb{Z} \rightarrow \mathbb{Z} / n \mathbb{Z}g:Z/nZ→Z/nZ, such that the 101 functions
are all bijections on Z/nZ\mathbb{Z} / n \mathbb{Z}Z/nZ.