When does 0!=1?

johnjohn320

Diamond Member
Jan 9, 2001
7,572
2
76
Apparently it's possible for 0 factorial to equal 1? Any ideas?

Sorry, factorial, not prime.
 

SpazzyChicken

Senior member
Feb 8, 2002
843
1
0
ummmmmm....... 0! = 1 is true. Zero factorial equals one.

Apparently it's possible for 0 prime to equal 1? Any ideas?

I have no idea wtf you are talking about here. Are you confusing prime with factorial???
 

Wallydraigle

Banned
Nov 27, 2000
10,754
1
0
There's a fake proof out there to show that 0=1, but you have to divide by zero to do it. If you could divide by zero, you could have Jesus powers and make whatever you wanted. Say you want an orange, but you don't have one, you just do the proof, divide by zero, and make the 0 oranges you have turn into 1 orange which you can eat. Oranges are awesome.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
If the question is "When does 0! = 1" then the answer is always.
If the question is "When does 0 != 1" then the answer is still always.

I'm confused.
 

ClueLis

Platinum Member
Jul 2, 2003
2,269
0
0
0! is defined as 1 simply because it makes a lot of mathematics easier (look at Taylor series, for example). There is really no other fundamental reason for it to be defined that way.
 

Balthazar

Golden Member
Apr 16, 2000
1,834
0
0
Originally posted by: notfred
If the question is "When does 0! = 1" then the answer is always.
If the question is "When does 0 != 1" then the answer is still always.

I'm confused.

I don't know what language you use but I know at least PHP PERL and C/C++ would st@b you in your sleep for using syntax like that ;p

Now $0! = 1; might pass with PERL or C/C++ (kinda doubt it in PERL, not sure about C)
And $0 != 1; Is only true so long as its not proveeded by $0 = 1;


Hahaha, this is so sad....
But actually now that I think about it, I don't think you are allowed to start a PHP variable with a number

Carry on.
 

Balthazar

Golden Member
Apr 16, 2000
1,834
0
0
Hahaha st*b is not allowed, hahaha I guess from all the smaktard with their st*b ____ cliche overkill?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: Balthazar
Originally posted by: notfred
If the question is "When does 0! = 1" then the answer is always.
If the question is "When does 0 != 1" then the answer is still always.

I'm confused.

I don't know what language you use but I know at least PHP PERL and C/C++ would st@b you in your sleep for using syntax like that ;p

Now $0! = 1; might pass with PERL or C/C++ (kinda doubt it in PERL, not sure about C)
And $0 != 1; Is only true so long as its not proveeded by $0 = 1;


Hahaha, this is so sad....
But actually now that I think about it, I don't think you are allowed to start a PHP variable with a number

Carry on.

in C:
#include <stdio.h>

int main(){
if(0 != 1){
printf("0 isn't 1\n");
}
}

in perl:
#!/usr/bin/perl

if(0 != 1){
print "0 ins't 1\n";
}

Go ahead and compile and run them, they both work.
 

Mday

Lifer
Oct 14, 1999
18,647
1
81
By definition:
n! = n*(n-1)*...*1
(n-1)! = (n-1)*...*1
From the above two lines:
(n-1)! = n! / n

let n = 4 ---> (n - 1) = 3

by definition we have
4! = 4 * 3 * 2 * 1
3! = 3 * 2 * 1
by above: (n-1)! = n! / n
3! = (4 * 3 * 2 * 1 ) / 4 = 3 * 2 * 1

makes sense, follows the definition of n! even.

how about now: n = 1
(n-1)! = n! / n
(1-1)! = 1!/1
0! = 1

we often think of factorials as multiplying by increasing "n's". if you think of factorialization backwards, as n decreases, you're dividing. so, by definition, and "backwards" thinking of n! and (n-1)!, we have it clearly stated that 0! = 1

if you look at this analysis, you see clearly why (n-1)! is not defined for n = (-1) or n=0. And by recursion, you see that factorials are not defined for ANY negative number, simply because you get a division by 0 error.

please note that even though we "define" 0! as 1, it makes sense that 0! is 1, and that factorial is truly undefined for negative numbers.
 

DrPizza

Administrator Elite Member Goat Whisperer
Mar 5, 2001
49,601
167
111
www.slatebrookfarm.com
Originally posted by: Mday
By definition:
n! = n*(n-1)*...*1
(n-1)! = (n-1)*...*1
From the above two lines:
(n-1)! = n! / n

let n = 4 ---> (n - 1) = 3

by definition we have
4! = 4 * 3 * 2 * 1
3! = 3 * 2 * 1
by above: (n-1)! = n! / n
3! = (4 * 3 * 2 * 1 ) / 4 = 3 * 2 * 1

makes sense, follows the definition of n! even.

how about now: n = 1
(n-1)! = n! / n
(1-1)! = 1!/1
0! = 1

we often think of factorials as multiplying by increasing "n's". if you think of factorialization backwards, as n decreases, you're dividing. so, by definition, and "backwards" thinking of n! and (n-1)!, we have it clearly stated that 0! = 1

if you look at this analysis, you see clearly why (n-1)! is not defined for n = (-1) or n=0. And by recursion, you see that factorials are not defined for ANY negative number, simply because you get a division by 0 error.

please note that even though we "define" 0! as 1, it makes sense that 0! is 1, and that factorial is truly undefined for negative numbers.

beat me. nice work too.
 

TuxDave

Lifer
Oct 8, 2002
10,571
3
71
Originally posted by: DrPizza
Originally posted by: Mday
By definition:
n! = n*(n-1)*...*1
(n-1)! = (n-1)*...*1
From the above two lines:
(n-1)! = n! / n

let n = 4 ---> (n - 1) = 3

by definition we have
4! = 4 * 3 * 2 * 1
3! = 3 * 2 * 1
by above: (n-1)! = n! / n
3! = (4 * 3 * 2 * 1 ) / 4 = 3 * 2 * 1

makes sense, follows the definition of n! even.

how about now: n = 1
(n-1)! = n! / n
(1-1)! = 1!/1
0! = 1

we often think of factorials as multiplying by increasing "n's". if you think of factorialization backwards, as n decreases, you're dividing. so, by definition, and "backwards" thinking of n! and (n-1)!, we have it clearly stated that 0! = 1

if you look at this analysis, you see clearly why (n-1)! is not defined for n = (-1) or n=0. And by recursion, you see that factorials are not defined for ANY negative number, simply because you get a division by 0 error.

please note that even though we "define" 0! as 1, it makes sense that 0! is 1, and that factorial is truly undefined for negative numbers.

beat me. nice work too.

:beer: Never thought of it that way.
 

Balthazar

Golden Member
Apr 16, 2000
1,834
0
0
Originally posted by: notfred
Originally posted by: Balthazar
Originally posted by: notfred
If the question is "When does 0! = 1" then the answer is always.
If the question is "When does 0 != 1" then the answer is still always.

I'm confused.

I don't know what language you use but I know at least PHP PERL and C/C++ would st@b you in your sleep for using syntax like that ;p

Now $0! = 1; might pass with PERL or C/C++ (kinda doubt it in PERL, not sure about C)
And $0 != 1; Is only true so long as its not proveeded by $0 = 1;


Hahaha, this is so sad....
But actually now that I think about it, I don't think you are allowed to start a PHP variable with a number

Carry on.

in C:
#include <stdio.h>

int main(){
if(0 != 1){
printf("0 isn't 1\n");
}
}

in perl:
#!/usr/bin/perl

if(0 != 1){
print "0 ins't 1\n";
}

Go ahead and compile and run them, they both work.


I'll be d@mned, learn something new every day
 

kglo

Member
Mar 19, 2002
95
0
0
Originally posted by: Mday
By definition:
n! = n*(n-1)*...*1
(n-1)! = (n-1)*...*1
From the above two lines:
(n-1)! = n! / n

let n = 4 ---> (n - 1) = 3

by definition we have
4! = 4 * 3 * 2 * 1
3! = 3 * 2 * 1
by above: (n-1)! = n! / n
3! = (4 * 3 * 2 * 1 ) / 4 = 3 * 2 * 1

makes sense, follows the definition of n! even.

how about now: n = 1
(n-1)! = n! / n
(1-1)! = 1!/1
0! = 1

we often think of factorials as multiplying by increasing "n's". if you think of factorialization backwards, as n decreases, you're dividing. so, by definition, and "backwards" thinking of n! and (n-1)!, we have it clearly stated that 0! = 1

if you look at this analysis, you see clearly why (n-1)! is not defined for n = (-1) or n=0. And by recursion, you see that factorials are not defined for ANY negative number, simply because you get a division by 0 error.

please note that even though we "define" 0! as 1, it makes sense that 0! is 1, and that factorial is truly undefined for negative numbers.

very nice

:beer:
 

JupiterJones

Senior member
Jun 14, 2001
642
0
0
0! = 1 for reasons that are similar to why
x^0 = 1. Both are defined that way. But there are reasons for these
definitions; they are not arbitrary.

You cannot reason that x^0 = 1 by thinking of the meaning of powers as
"repeated multiplications" because you cannot multiply x zero times.
Similarly, you cannot reason out 0! just in terms of the meaning of
factorial because you cannot multiply all the numbers from zero down
to 1 to get 1.

Mathematicians *define* x^0 = 1 in order to make the laws of exponents
work even when the exponents can no longer be thought of as repeated
multiplication. For example, (x^3)(x^5) = x^8 because you can add
exponents. In the same way (x^0)(x^2) should be equal to x^2 by
adding exponents. But that means that x^0 must be 1 because when you
multiply x^2 by it, the result is still x^2. Only x^0 = 1 makes sense
here.

In the same way, when thinking about combinations we can derive a
formula for "the number of ways of choosing k things from a collection
of n things." The formula to count out such problems is n!/k!(n-k)!.
For example, the number of handshakes that occur when everybody in a
group of 5 people shakes hands can be computed using n = 5 (five
people) and k = 2 (2 people per handshake) in this formula. (So the
answer is 5!/(2! 3!) = 10).

Now suppose that there are 2 people and "everybody shakes hands with
everybody else." Obviously there is only one handshake. But what
happens if we put n = 2 (2 people) and k = 2 (2 people per handshake)
in the formula? We get 2! / (2! 0!). This is 2/(2 x), where x is the
value of 0!. The fraction reduces to 1/x, which must equal 1 since
there is only 1 handshake. The only value of 0! that makes sense here
is 0! = 1.

And so we define 0! = 1.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |