# Opposite of Factorial? [duplicate]

Possible Duplicate:
Is there a way to solve for an unknown in a factorial?

I was just wondering, what would be the opposite of factorial?

For example, If I had $n! = 120$. How can I then show algebraically that $n = 5$?

-

2
You could repeatedly divide your number by increasing integers; and if at any point you divide by $k$ and are left with $k+1$ then you know that the number you started with is $(k+1)!$. – Clive Newstead Oct 2 '12 at 13:03
Are you looking for a solution that works when the result is a non-integer? For example, suppose someone asks you for $n$ such that $n! = 200$. Do you want to say "There is no such $n$," or do you want to say "$n$ would have to be between 5 and 6", or do you want to say "$n\approx 5.297$"? – MJD Oct 2 '12 at 13:05
@MJD If possible, I would like to know both methods. – gekkostate Oct 2 '12 at 13:07
– MJD Oct 2 '12 at 13:08

## marked as duplicate by J. M., Ross Millikan, Matt N., Henry T. Horton, SashaOct 3 '12 at 2:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

## 1 Answer

[Added because of a question in a comment] The generalization of the factorial is the gamma-function: $n! = \Gamma(1+n)$ where we can also insert noninteger values for n: $y = \Gamma(z)$ such that we have a function over the complex numbers $z$ except the poles at the non-positive integers).[/added]

The gamma-function has two real fixpoints. If you write the power-series of the gamma around one of that fixpoints, then this power series has no constant term and can be reverted by series-reversion. From this you can then get the inverse of the gamma, and from this the inverse of the factorial. Unfortunately, the convergence-radii of that series are both small, so I cant say at the moment, how useful this process would actually be.

(I think I've seen a question concerning the inverse of the gamma here or on MO, and possibly even showed a couple of that coefficients: see here for a short discussion)

-
I don't know what the gamma function is.. Can you please offer an explanation to what this means? – gekkostate Oct 2 '12 at 13:12

1
@gekkostate: you could start at Wikipedia or Mathworld – Ross Millikan Oct 2 '12 at 13:35
– Ross Millikan Oct 2 '12 at 13:39
– Shahab Oct 2 '12 at 13:43
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 13, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9489821791648865, "perplexity_flag": "middle"}