APL (Dyalog Unicode), 4 bytes
I was just copying Bubbler's solution. I didn't write it, so it's community wiki.
!⍣¯1 Explanation
⍣¯1 The inverse of this function: ! Factorial function I was just copying Bubbler's solution. I didn't write it, so it's community wiki.
!⍣¯1 ⍣¯1 The inverse of this function: ! Factorial function