1
$\begingroup$

13P5 = 1287(xPx)

I simplify the above to: 13!/8! = 1287(x!)

The expression on the left simplifies to 154,440.

I divide both sides by 1287 to get: 120=x!

At this point I'm stumped.

Thanks in advance, n

  • 0
    If you simply calculate $n!$ for the first few positive integers $n$, you should find your $x$ pretty quickly.2011-07-24

1 Answers 1

2

I am not sure that there is really a better solution than to just calculate the first few factorials at this point and see which one gives you $120$... You should find your answer pretty fast.

It is not possible to invert the "factorial" function in general since it is not injective, i.e. $0!=1!=1$

  • 1
    There is another way to go about it, though: divide $120$ by $2$, then divide the quotient by $3$, then that quotient by $4$, and so on: either you reach a quotient of $1$ with divisor the desired $x$, or you reach a quotient less than $1$ without ever getting $1$, in which case there’s no solution.2011-07-24
  • 0
    right, very good point.2011-07-24
  • 0
    Ah, I thought there might be a non-brute force method for solving for x. Thanks!2011-07-24
  • 0
    If you did know that you had an exact factorial, and it was much larger than this, Stirling's approximation might come in handy.2011-07-24