The function $f(n)$ is defined over $\mathbb{N}$ as follows
$$f(n) = \prod_{i=1}^{n}i^i$$
Show that $g(n,r)$ where $r \in \mathbb{N}$ and $1 < r < n$ which is defined as
$$g(n,r) = \frac{f(n)}{f(r)\times f(n-r)}$$
takes only integer values.
I realized that it is enough to show that the power of each prime in the numerator is always greater than or equal to the power of each prime in the denominator but was unable to come up with anything.
Any hints and ideas are welcome. Thanks!