9

I saw this question:

Vidya wonders why numbers one and zero are neither composite numbers nor prime numbers. Could you please explain to Vidya what can happen if they are either composite numbers or prime numbers? Use an example to punch your points.

Apart from the fact that I cannot comprehend how to answer, I am also unable to understand how zero is not composite.

A number $n$ is composite if $k\mid n$, where $1<k<n$. $k\mid n$ if $kx=n$. Since, $0k=0$ for all $k$, shouldn't $0$ be some sort of "hyper-composite"?

Is it? If not, why not?

DynamoBlaze
  • 2,781
  • 2
    The same question is here. – Dietrich Burde Nov 24 '17 at 09:53
  • @DietrichBurde This question's answer does not answer my question. – DynamoBlaze Nov 24 '17 at 09:54
  • 2
    But it gives an answer to a part of your question, regarding "sort of HyperComposite". – Dietrich Burde Nov 24 '17 at 09:55
  • 3
    According to you 1<k<n , if we put n=0,, then inequality alters,, there any composite must be greater than 1 – Atul Mishra Nov 24 '17 at 11:52
  • By definition 0 is neither prime nor composite. Why must there be a deeper reason? Why are flying reptiles of the Cretaceous period not considered dinosaurs? The word "dinosaur" could have been defined in such a way that it would include pterosaurs. So what? The definitions (in both mathematics and paleontology) are of course motivated (and the motivation in the case of mathematics has been spelled out in some of the answers) but once the definition has been fixed that is pretty much the end of the matter. – John Coleman Nov 24 '17 at 14:57
  • 4
    By your definition of "composite" (which may or may not be the proper definition, that is not my point), an integer $n$ must satisfy $n\geq3$ in order to have any chance of being composite (namely for such a $k$ to exist). Certainly $0$ (or any negative number) would not be composite by this definition. – Marc van Leeuwen Nov 24 '17 at 17:41
  • 1
    Primes and composites are mutually exclusive, yes, but they are not exhaustive of all integers. The integers 0 and 1 fall outside of each set. – CogitoErgoCogitoSum Nov 24 '17 at 21:00
  • 1
    Primes are integers that are only divisible by 1 and itself (two unique values). Now 1 is divisible by 1 and by itself, also 1, clearly. But these arent unique, so one is not prime. However, 0 is divisible by 1, but it is not divisible by itself, as division by zero is undefined. Hence, 0 is also not prime. – CogitoErgoCogitoSum Nov 24 '17 at 21:03
  • Composites are not numbers that are not prime. They are numbers with prime factors, constructed from the product of primes. Neither 1 nor 0 can be constructed from the product of primes, as all such numbers would be at least 2 since 2 is the smallest prime. So 0 and 1 are not composite. – CogitoErgoCogitoSum Nov 24 '17 at 21:04
  • But of course $0$ is prime: If $0\mid ab$ for integers $a,b$, then $0$ divides at least one of $a,b$. However, $0$ is not irreducible (a notion that many confuse with prime). ;P – Hagen von Eitzen Nov 24 '17 at 21:18
  • 1
    @HagenvonEitzen: The ring theorist in me knows that $0$ is a prime element of $\mathbb{Z}$. But the number theorist and the math teacher in me tell him to shut up, and stand firm that $0$ is not a prime number. After all, $0$ is not a natural number to begin with. Also, https://math.stackexchange.com/questions/3698/ – Torsten Schoeneberg Nov 24 '17 at 23:57

7 Answers7

21

The answer they're looking for, I think, is that if $1$ is considered a prime or $0$ considered a composite, then we no longer have unique factorization. Or at least the statement of the unique factorization theorem becomes uglier.

For the first point, $6 = 2\cdot 3 = 1^5\cdot 2 \cdot 3$ gives two different prime factorizations of $6$. Ick.

For the second, $0 = 0*3 = 0 *2.$ So $3$ is a factor of the first product, but not the second. Again, ick. And this breaks even more things. What's gcd$(0,0)$, for instance?

  • 20
    "What's $\gcd(0,0)$, for instance?" — $0$ of course. In the divisibility order, $0$ is the largest number. Indeed, in some sense it's infinitely large. – celtschk Nov 24 '17 at 16:07
  • @celtschk Divisibility order? Doesn't "greatest" in gcd mean largest number in the traditional sense? – JounceCracklePop Nov 24 '17 at 19:23
  • 20
    @Carl By "divisibility order" we mean $a$ is larger than $b$ if $b|a$; this is only a partial order, but it agrees with the usual notion of order on positive integers where it is defined, and leads to the same definition of gcd. It is preferable to use the divisibility order to define gcd because it generalizes readily to other rings than the integers. – Carmeister Nov 24 '17 at 19:28
  • Hmm. I learn something new. – Mark R Russell Nov 25 '17 at 16:41
  • How does your second statement about writing $0 = 0 \cdot 3 = 0 \cdot 2$ shows $0$ is not composite. I don't get it? I thought unique factorisation in $\mathbb{Z}$, meant writing a non-zero integer $n$ uniquely as $\text{sgn}(n) \prod\limits_{r} {p_r}^{e_r}$ with $p_r >1, e_r >0$? No? – William Dec 13 '21 at 11:03
  • @William My statement shows that if we want to count $0$ as a composite, then the definition of unique factorization will have to change. And be much uglier. – B. Goddard Dec 13 '21 at 11:34
  • Thanks for the quick response! I suppose my confusion is because I don't know what definitions are you working with. How do you define a composite number and what is your definition of unique factorisation when you don't consider $0$ as a composite number? (If you do consider $0$ as a composite number than there's my unique factorisation, but doesn't look as ugly, frankly unless there is a better UF when you don't consider $0$ a composite number?) Thanks again! – William Dec 13 '21 at 11:57
  • @William Your definition of UF says "non-zero." How will you modify your definition so that you can remove "non-zero"? – B. Goddard Dec 13 '21 at 12:02
  • Forgive me, I don't know, honestly. Until this morning, I didn't even know there was a UF theorem for integers. I was always taught that the theorem was for $n>1$, which is was brought me here in the first place. Would you mind answering it yourself? – William Dec 13 '21 at 12:11
  • @William This is what I meant by "the statement of the unique factorization theorem becomes uglier." You have to add "except $0$", at least. But what's the point of adding zero to the composites if you have to exclude it in every defintion? – B. Goddard Dec 13 '21 at 12:29
  • I see, but that brings back to my original question. How does that affect whether or not $0$ is composite? Let's say you don't include $0$ in composite numbers. How would that change the statement of UF. You don't define UF as– any composite number can be uniquely written as the product ..., do you? So what does $0$ being composite have anything to do with UF? Are you getting what I'm trying to say? – William Dec 13 '21 at 12:41
  • @William IF you want to count zero as a composite, THEN you need to change the statement of what UF is, because $0$ doesn't have a unique factorization. – B. Goddard Dec 13 '21 at 12:50
14

While $0$ is indeed divisible by any prime, no product of primes will make $0$. Therefore, $0$ is not composite.

Weckar E.
  • 251
  • 1
  • 7
  • 5
    I like this. It asks "composite of what?" and shows that if you consider $0$ composite, you must also consider it a prime. Which we do not want by the accepted answer, or https://math.stackexchange.com/questions/3698/ Also, a similar reasoning (if it's composite then it's a prime, or what should it be a composite of?) would apply to $1$! – Torsten Schoeneberg Nov 24 '17 at 23:47
  • On second thought, and in the spirit of the question, there is a way out of this. One conventionally sets $1$ as the empty product -- so it is, uniquely, the composite of the empty set, hence rather composite than prime, "the composite of nothing". Then one could also say that $0$ is any "infinite product" of primes, "hypercomposite" as the OP says. Here however one would lose uniqueness, since there are infinitely many infinite products of primes. (But all this is not really true. It would make perfect sense though if one replaced numbers by ideals and multiplication by intersection.) – Torsten Schoeneberg Nov 26 '17 at 22:03
10

We can of course assume that $0$ is a composite number. It would not break mathematics or anything. However it would make a lot of theorems and statements more tedious. For instance, we know that any composite number can be written as a product of a finite amount of primes. However If we let $0$ be composite then we have to either always say "Every composite except $0$ can be ..." or ignore such theorems.

To put it simply we let $0$ be non-composite because it is convenient.

One could also argue that "composite" numbers multiplied with each other should create a new composite number, and this is not true for $0$. But then this is more of a philosophical stance than a mathematical one I would claim.

Moo
  • 11,311
Ove Ahlman
  • 4,329
8

A number $n$ is composite if [there is an integer $k$ such that] $k|n$, where $1<k<n$.

I found your statement of the definition of a composite number a little ambiguous, so I have inserted a few extra words emphasizing that there must actually exist one number that can be $k$ in the two conditions given.

As you observed, if $n=0$ then the first condition, $k\mid n,$ is satisfied by many integers--every one of them, in fact.

But according to the definition that you yourself gave, there is also a second condition that $k$ must satisfy: $1 < k < n.$ If $n = 0,$ is there any integer $k$ that satisfies this condition, that is, $1 < k < 0$? No, there is no integer that is both greater than $1$ and less than $0.$

Therefore, according to this definition, $0$ is not composite.

Other answers have indicated why it is desirable that $0$ not be composite, that is, why we would want to include the second condition in the given definition.

David K
  • 98,388
3

For the Fundamental Theorem of Arithmetic we usually assume that $n$ is a positive integer, and consider $n=1$ separate. Indeed, $1$ is neither a prime nor composite, according to your definition. Although zero satisfies $0k=0$ for $1<k<n$, it is not considered to be a positive integer. Hence it is not composite, i.e., not considered for having a prime decomposition. The usual prime numbers then start with $2,3,\ldots $, and the positive integers to be composed into these primes then start with $n=2,3,4,5,\ldots$

Wikipedia says for $n=1$: Using the empty product rule one need not exclude the number $1$, and the theorem can be stated as: every positive integer has unique prime factorization.

However, we exclude $0$.

Dietrich Burde
  • 130,978
3

In more general stuctures, rings, we define units, irreducible elements and prime elements. (What follows is slightly modified quotes from Wolfram MathWorld.)

Unit

A unit in a ring is an element $u$ such that there exists $u^{-1}$ where $u \cdot u^{-1}=1$.

Irreducible Element

An element $a$ of a ring which is nonzero, not a unit, and whose only divisors are the trivial ones (i.e., the units and the products ua, where u is a unit). Equivalently, an element a is irreducible if the only possible decompositions of a into the product of two factors are of the form $a=u^{-1}ua$, where $u^{-1}$ is the multiplicative inverse of $u$.

Prime Element

A nonzero and noninvertible element a of a ring $\mathbf R$ ... characterized by the condition that whenever $a$ divides a product in $\mathbf R$, $a$ divides one of the factors. The prime elements of $\mathbb Z$ are the prime numbers, $\mathbf P$.

Comments

In an integral domain, every prime element is irreducible, but the converse holds only in unique factorization domains. The ring $\mathbb Z[i \sqrt 5]$, where $i$ is the imaginary unit, is not a unique factorization domain, and there the element $2$ is irreducible, but not prime, since $2$ divides the product $(1-i \sqrt 5)(1+i \sqrt 5)=6$, but it does not divide any of the factors.

In the ring of integers, all irreducible elements are also prime elements.

Note that prime and irreducible elements cannot be zero or units.

So why omit zero?

Note that $0$ meets the definition of a prime number since, if $0$ divides $ab$, then zero divides $a$ or zero divides $b$.

But zero is not irreducible since every number divides $0$.

So if we want our prime numbers to also be irreducible, we must require that they not be equal to $0$.

  • Given the nature of the question, I would like to mention that $-2$, $-3$, $-5$, ... are also prime elements of $\mathbb{Z}$, but we do not usually consider them to be prime numbers. The prime numbers form a complete set of representatives for the equivalence classes of prime elements. – Gunnar Sveinsson May 25 '21 at 18:47
  • @Gunnar - We consider two primes to be equivalent if they only differ by a unit factor. – Steven Alexis Gregory Jun 16 '21 at 12:22
1

You cannot answer this question without a formal defintion of a composite number. Usual definitions exclude $0$ explicitly and there is nothing to prove.

$1$ is obviously not composite.

The case of primality is easier: you need to have exactly two distinct divisors, which is not achieved by $0$ nor $1$.

Had another convention been used, this would have broken the Fundamental Theorem of Arithmetic, because $0^m=0$ and $1^m=1$, causing indeterminacies.

  • 3
    I think the words 'exactly' and 'distinct' are there in the definition precisely for the purpose of excluding 0 and 1. :-) [note that you mean two positive divisors] – Pablo H Nov 24 '17 at 20:05