Nice chatting at #koffice last night. Had fun together with David Faure trying to find why KSpread is so slow. Will examine in depth later. I also start to use my email@example.com e-mail address.
Just realized, there are so many different algorithms for just calculating factorial. This link is highly recommended: www.luschny.de/math/factorial/FastFactorialFunctions.htm