For integers $n>1$, let $$ s_n=\prod_{k=0}^{n}\binom{n}{k}=\prod_{k=1}^{n-1}\binom{n}{k} $$ $s_n$ denoting the product of a row of the Pascal Triangle.
Also let $$ t_n=\frac{s_n}{n^{n-1}} =\prod_{k=1}^{n-1}\frac{\binom{n}{k}}{n} $$
If $n$ is prime, by this result, each term in the product for $t_n$ is an integer, and thus $t_n$ is an integer.
My question is, for what composite numbers $n$ is $t_n$ an integer?
Note:
I believe the first composite number to satisfy the above, to be $n = 40$, with $t_n$ equalling:$$ 36990392961319419974642642130188695887669034562410788297544527529420038637863756835263205790947107511723092990405151720013340165976289167766496428365384796272978063487332374591282929938651354547637805475295730509532867521205942260299808874191672263200800 $$
Note 2: It turns out the above is incorrect: $n=36$ is the first valid solution. Thank you Hagen von Eitzen!
t(n)=prod(k=1,n-1,binomial(n,k)/n)and thenfor(n=1, 1000, if (!isprime(n) && denominator(t(n))==1, print(n))))But for finding results for larger $n$ fast, I wrote a more complex C program that checks the $p$-adic valuation of the product for all $p\mid n$. With that optimization, it doesn't take long to find that the millionth such number is 3741190 – Hagen von Eitzen Apr 15 '22 at 19:58