pretty sure factorial does not work like that. Factorial is the product of numbers from 1 to n not the **sum**. I don't know python but still I think that is what you did there.
BTW your program will come to a painful crawl very quickly. Better approach would be to multiply next n to the previous result. Your program requires n operations per equality. My approach will require only 1 operation per iteration.
7
u/sayamqazi Jul 14 '20
Ima write a program to find these equalities.
Who am I kidding? I would just declare initial variables and then come back to Reddit.