OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..145
EXAMPLE
For n=2, p=2: a(n) = C(2,2) = 1.
For n=3, p=2,3: a(n) = C(3,2) * C(3,3) = 3.
For n=4, p=2,3: a(n) = C(4,2) * C(4,3) = 24.
MAPLE
a:= n-> mul(`if`(isprime(p), binomial(n, p), 1), p=2..n):
seq(a(n), n=0..20); # Alois P. Heinz, Apr 13 2020
PROG
(PARI) a(n) = prod(k=1, n, if (isprime(k), binomial(n, k), 1)); \\ Michel Marcus, Apr 13 2020
(PARI) a(n)=my(s); forprime(p=2, n, s*=binomial(n, p)); s \\ Charles R Greathouse IV, Apr 13 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Om R. Patel, Apr 13 2020
STATUS
approved