def factorial (n) if (< n 2) 1 * n factorial (- n 1)