The gamma function of n, written Γ(n), is ∫ 0∞ e-xxn-1dx. Recursively Γ(n+1) = nΓ(n). For non-negative integers Γ(n+1) = n!.