Factorial.Double {Zseq} | R Documentation |
Double Factorial numbers
Description
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
.
Usage
Factorial.Double(n, gmp = TRUE, odd = TRUE)
Arguments
n |
the number of first |
gmp |
a logical; |
odd |
a logical; |
Value
a vector of length n
containing first entries from the sequence.
See Also
Examples
## generate first 10 double factorials
print(Factorial.Double(10))
[Package Zseq version 0.2.1 Index]