Factorial.Double {Zseq} | R Documentation |
Under OEIS A000165 and A001147, a Double Factorial is the factorial of numbers with same parity.
For example, if n=5
, then n!!=5*3*1
.
Factorial.Double(n, gmp = TRUE, odd = TRUE)
n |
the number of first |
gmp |
a logical; |
odd |
a logical; |
a vector of length n
containing first entries from the sequence.
## generate first 10 double factorials
print(Factorial.Double(10))