How would you find (n-1)! given n!? (Think for a moment before moving on.) Dividing by n of course, (n-1)!=n!/n. This immediately extends the notion of factorials backwards to 0!=1!/1. It's only a matter of checking to see which factorial-dependent formula (usually arising in context of combinatorics, or gamma function) fits - and it turns out (luckily) that everything fits. Edit: Even if it tuned out some things don…
If you want to think a little more:
You are given a value v, which you are told is n! for some n, which you are not told. Find a general algorithm to produce (n-1)!.
I have an algorithm which, I fear, may not have the most efficient running time.