Unrelated factorial calculation functions.