1

I saw this question on an fb page and I couldn't solve it.

Question:

What is the value of $(-9!)$?

a)$362800$

b)$-362800$

c) Can not be calculated

The first options seems to be incorrect,which leaves $c$ but I can't justify it.Does it have something to do with gamma function which asks for$\int _{ 0 }^{ \infty }{ { x }^{ -10 } } { e }^{ -x }dx$. Why can't it be calculated?

Update:

I have been given answers that "using the Gamma function, it can't be evaluated". Isn't there some other way to do so?

Did
  • 279,727
Syn
  • 31
  • 3

5 Answers5

8

The factorial function from $\mathbb{N}$ to $\mathbb{N}$ is a special case of the gamma function from $\mathbb{C}$ to $\mathbb{C}$:

$$n! = \Gamma(n+1) = \int\limits_{0}^{\infty}{x}^{n}{e}^{-x}\,{\rm{d}}x$$

Unfortunately, this function is defined for all complex numbers except negative integers and zero.

barak manos
  • 43,109
  • 1
    Because it's not defined for negative integers and $-9$ is a negative integer.... let's put that together.... – Squirtle Jun 19 '14 at 15:28
  • 3
    @Squirtle: Well... I figured OP would notice that $-9$ was a negative integer by now... – barak manos Jun 19 '14 at 15:28
  • 1
    Although, I think that $\Gamma(1)=1$ so that the $n=0$ is allowed. Also, just because the $\Gamma$ function doesn't work doesn't mean we can just define $(-n)!$ to be $-(n!)$. For example, many number theorists define $-3$ as a "negative prime number". – Squirtle Jun 19 '14 at 15:31
  • @Squirtle: why not? An usual definition for a prime number is an integer that has only two positive divisors. This fits also with the notion of prime element in a commutative ring. – Taladris Jun 19 '14 at 16:35
  • 1
    ...... I am not questioning the definition of $-p$ being prime; merely, I am stating we can OFTEN very naturally define things for $-n$ the same way we do for $n \in \mathbb{N}$ if we are careful.

    There's a problem with the definition of $(-n)!:=-(n!)$. Namely, why is it better than the other definition: $(-n)!=(-n)(-(n-1))!$ Notice these differ if $-n$ is even. The former computes $(-4)!=-(4!)=-24$; while the latter computes $(-4)!=(-4)(-3)(-2)(-1)(0!)=24$

    Also, I should point out your definition of a prime number is not canonical, as normally it's only defined for natural numbers.

    – Squirtle Jun 19 '14 at 16:42
  • 1
    Additionally, if the definition of prime were given over $\mathbb{Z}$ then we would have to say, "There are exactly 4 divisors for $n$ ($n,-n,-1,$ and $1$)" As this is not the definition, we can just agree (perhaps informally) that $-p$ is prime if $p$ is. – Squirtle Jun 19 '14 at 16:45
  • There exist other interpolations over $\mathbb{C}$ of the factorial function over $\mathbb{N}_+$, although I've never knowingly seen one. Maybe they are defined at the negative integers. – pshmath0 Sep 11 '14 at 09:44
  • @pbs: Yes, I'm aware of the fact that there are infinitely many continuous extensions of the factorial function to non-positive/non-integers (http://en.wikipedia.org/wiki/Gamma_function explains it pretty well). I'm not sure why this one is specific is regarded as the "formal extension" of the factorial function, possibly because it's the most useful one in practice (as stated in that link). – barak manos Sep 11 '14 at 09:50
  • @ barak manos It is specific because it is the only one that is concave in the right half of the plane (I think) – pshmath0 Sep 11 '14 at 09:54
  • @pbs: Thanks for the info :) – barak manos Sep 11 '14 at 10:53
4

If you mean $-(9!)$, which will often be written simply as $-9!$, then the answer would be $b$, because it is simply $(-1)*(9!)$, or -362800. However, if you mean $(-9)!$, then the answer would be $c$, because the gamma function has poles at the negative integers and zero, because $\Gamma(x)$ can be defined as $\frac{\Gamma(x+k)}{\prod_{j=0}^{k-1}x+j}$ for any $k$ where $x+k>0$. Therefore if $x$ is a negative integer, than one of the factors of the denominator will be zero, and so there will be a pole at all negative integers.

Avi
  • 1,780
  • 11
  • 21
0

The above two are correct about operator precedence and so (b) would be my answer. But might I also add that the gamma function form also yields undefined values for negative integer factorials.

lemon
  • 3,548
0

99.9 % of peopel wil get dis wrong!!!

But in all seriousness:

You don't have to define the factorial function in terms of the gamma function nor the gamma function in terms of the factorial function!!!! In this light, the other answers (in my humble opinion) are very wrong.

However, the gamma function is nice because it $interpolates$ the factorial function nicely for positive integers. Physicists often like to do other things such as extend the factorial function to be able to compute things like $\frac{1}{2}! = \sqrt{\frac{\pi}{4}}$

You should realize that you CAN extend the factorial function so long as your audience is clear that you are defining something a certain way. For example, the factorial function is usually defined as $0!=1$ and $n!=(n-1)!$ then it might be natural to do the following for the factorial function on negative integers, let $(-n!)=(-(n-1)!)$ and $0!=1$, so that for even $n$ we have $n!=(-n!)$ and that for odd $n$ we have that $-(n!)=(-n!)$

For example, $$-1!=-1$$ $$-2!=2$$ $$-3!=-6$$ $$-4!=24$$ and so on; of course, this is just one way to define it.... and as the post you found (probably) said itself, $99$% of people get this wrong.

Squirtle
  • 6,698
  • 1
    I shouldn't have to say this... but the opening line is a reference to the fact that this question was pulled from a fb post. – Squirtle Jun 19 '14 at 17:14
  • Somebody upvoted me and then someone else downvoted me.... @Downvoter, care to explain yourself? You know that comment you get when you downvote: "Please consider leaving a comment if you think the post can be improved." Well!? – Squirtle Jun 19 '14 at 17:32
  • I have never seen the factorial function defined this way. Hardly seems useful to have the factorial of any positive integer be the same value – ClassicStyle Jul 13 '14 at 21:51
  • I made a really bad typo on my phone and wasn't able to edit it there...... I wanted to say, "You can define something however you wish; then people can do whatever they want with it." – Squirtle Jul 15 '14 at 18:06
  • I'm not sure if you are trolling or not...the factorial function is never defined as $n!=(n-1)!$. I'm also not sure why you would say that it usually is – ClassicStyle Jul 16 '14 at 07:49
0

We have the following property: $n!=\dfrac{(n+1)!}{n+1}$ . Hence, $0!=\dfrac{1!}1=1;~(-1)!=\dfrac{0!}{0_\pm}=\pm\infty$, etc.

Lucian
  • 48,334
  • 2
  • 83
  • 154
  • That only if you (rather arbitrarily) want that to continue holding... – vonbrand Jun 19 '14 at 20:26
  • @vonbrand: It's just like extending exponents to non-natural values. Generalizations are done by keeping the basic functional properties intact. – Lucian Jun 19 '14 at 20:48
  • But some properties go out the window, i.e., no more powers of negative numbers when raising to a real. – vonbrand Jun 19 '14 at 20:50
  • @vonbrand: Exponentiation can be generalized even further to encompass complex numbers, and so can factorials. Either way, if you have an alternative generalization, based on something else, no one is stopping you from posting it as an answer. – Lucian Jun 19 '14 at 20:55