discrete mathematics - How to write psuedocode to compute n!!(double factorial) recursively? -


n!!= 1*3*...*n, if n odd. n!!= 2*4*...*n, if n even. 

i've been trying, i'm having tough time starting problem.

if n = 1, n!! = 1   if n = 2, n!! = 2   else n!! = n * (n-2)!! 

Comments

Popular posts from this blog

java - Static nested class instance -

Python Pandas join aggregated tables -

process - Python What is the difference between a Pool of worker processes and just running multiple Processes? -