%I #22 Dec 02 2018 18:41:21
%S 1,2,18,768,90000,44789760,30494620800,121762322841600,
%T 393644011735296000,5618427494400000000000,
%U 107587910030480590233600000,5951222311476064581656248320000,176804782652901880753915871232000000,69819090744423637487544223697731584000000
%N a(n) = Product_{k=1..n-1} n!k, where n!k is k-tuple factorial of n.
%C What is the least n > 2 for which a(n) - prevprime(a(n)) is a composite number? If such a number n exists, it is greater than 250.
%C The least n for which nextprime(a(n)) - a(n) is a composite number is 158.
%H Michel Marcus, <a href="/A297707/b297707.txt">Table of n, a(n) for n = 1..100</a>
%F a(n) = Product_{t=1..n-1} (Product_{k=0..floor((n-1)/t)} (n-t*k)).
%F a(n) = (n^(n-1))*Product_{k=1..n-1} k^tau(n-k).
%e a(2) = (2!1) = (2*1) = 2;
%e a(3) = (3!1)*(3!2) = (3*2*1)*(3*1) = 18;
%e a(4) = (4!1)*(4!2)*(4!3) = (4*3*2*1)*(4*2)*(4*1) = 768;
%e a(5) = (5!1)*(5!2)*(5!3)*(5!4) = (5*4*3*2*1)*(5*3*1)*(5*2)*(5*1) = 90000.
%p b:= proc(n, k) option remember; `if`(n<1, 1, n*b(n-k, k)) end:
%p a:= n-> mul(b(n, k), k=1..n-1):
%p seq(a(n), n=1..20); # _Alois P. Heinz_, Dec 02 2018
%t Array[(#^(# - 1)) Product[k^DivisorSigma[0, # - k], {k, # - 1}] &, 13] (* _Michael De Vlieger_, Jan 04 2018 *)
%o (PARI) a(n) = (n^(n-1))*prod(k=1, n-1, k^numdiv(n-k)); \\ _Michel Marcus_, Dec 02 2018
%Y Cf. A000142, A006882, A007661, A007662, A085157, A085158, A114799, A114800.
%Y Cf. A114806, A288327, A006990, A033933.
%K nonn
%O 1,2
%A _Lechoslaw Ratajczak_, Jan 03 2018