Changed n factorial to n. Math error on my part