In mathematics, and more specifically number theory, the hyperfactorial of a positive integer n {\displaystyle n} is the product of the numbers of the form x x {\displaystyle x^{x}} from 1 1 {\displaystyle 1^{1}} to n n {\displaystyle n^{n}} .