early 15c., "commercial agent, deputy, one who buys or sells for another," from French facteur "agent, representative" (Old French factor, faitor "doer, author, creator"), from Latin factor "doer, maker, performer," in Medieval Latin, "agent," agent noun from past participle stem of facere "to do" (from PIE root *dhe- "to set, put"). In commerce, especially "a commission merchant." Mathematical sense ("The Quantities given to be multiplied one by the other are called Factors") is from 1670s. Sense of "circumstance producing a result" is attested by 1816, from the mathematical sense.
suffix forming nouns of action from verbs, mostly from Latin and French, meaning "act of ______ing" (such as survival, referral), Middle English -aille, from French feminine singular -aille, from Latin -alia, neuter plural of adjective suffix -alis, also used in English as a noun suffix. Nativized in English and used with Germanic verbs (as in bestowal, betrothal).
<a href="https://www.etymonline.com/word/factorial">Etymology of factorial by etymonline</a>
Harper, D. (n.d.). Etymology of factorial. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/factorial