# Are prime numbers like elements?

**URL:** <https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250>\
**Category:** Factual Questions\
**Created:** [January 12, 2008, 4:08am UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250 "2008-01-12T04:08:48Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)\
**Post date:** [January 12, 2008, 1:16pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/21 "2008-01-12T13:16:18Z")

</div>

[QUOTE=petew83]  
Lead cannot be turned into gold.  
[/QUOTE]  
Yes, it can be if you’re willing to spend the energy to rip protons out of the nucleus and slam them back in.

Mathematics is absolute. Physics (and the whole physical world) is fuzzy.

---

<div class="post-metadata">

**Author:** ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)\
**Post date:** [January 12, 2008, 2:39pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/22 "2008-01-12T14:39:18Z")

</div>

Dying Butterfly writes:

\> Nothing to contribute except that I read elements as elephants.

> **[American Chemical Society](https://www.acs.org)**
>
> ACS is one of the world’s largest scientific societies and the premier home of chemistry professionals. Find career opportunities, educational resources, and more.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [January 12, 2008, 2:41pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/23 "2008-01-12T14:41:43Z")

</div>

[QUOTE=ultrafilter]  
Are you thinking of the [fundamental theorem of arithmetic](http://en.wikipedia.org/wiki/Fundamental_theorem_of_arithmetic)? Unique factorization is a big deal, but the analogy between a list of primes and the periodic table is probably stretching it a bit.  
[/QUOTE]  
Yes, it probably is, but it’s one I’ve seen before, and it makes a certain amount of sense. If you want to know what a number is “made of,” you look at its unique factorization, so that, for example, 28 = 2[sup]2[/sup]7 in the same sense that water = H[sub]2[/sub]O. (One way the analogy breaks down is that, if I understand correctly, there can be more than one way of combining the same elements in the same quantities, with different molecular structures.)

**Hypnagogic Jerk** is right about primes being fundamental to number theory. So, in some sense, number theory is that “mathematical theory” that the OP asked about.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [January 12, 2008, 3:12pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/24 "2008-01-12T15:12:55Z")

</div>

[QUOTE=Thudlow Boink]  
Yes, it probably is, but it’s one I’ve seen before, and it makes a certain amount of sense. If you want to know what a number is “made of,” you look at its unique factorization, so that, for example, 28 = 2[sup]2[/sup]7 in the same sense that water = H[sub]2[/sub]O. (One way the analogy breaks down is that, if I understand correctly, there can be more than one way of combining the same elements in the same quantities, with different molecular structures.)  
[/QUOTE]

The other problem with the analogy is that knowing the elemental composition of a molecule can tell you pretty much everything you need to know about it, including how it reacts with other molecules. But knowing the factorization of a number gives you limited information about how it “reacts” with other numbers. For instance, knowing the factorizations of x and y tells me absolutely nothing about the factorization of x + y.

---

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [January 12, 2008, 4:39pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/25 "2008-01-12T16:39:24Z")

</div>

[QUOTE=Thudlow Boink]  
Yes, it probably is, but it’s one I’ve seen before, and it makes a certain amount of sense. If you want to know what a number is “made of,” you look at its unique factorization, so that, for example, 28 = 2[sup]2[/sup]7 in the same sense that water = H[sub]2[/sub]O. (One way the analogy breaks down is that, if I understand correctly, there can be more than one way of combining the same elements in the same quantities, with different molecular structures.)

**Hypnagogic Jerk** is right about primes being fundamental to number theory. So, in some sense, number theory is that “mathematical theory” that the OP asked about.  
[/QUOTE]

You understand correctly, by the way - [C[sub]2[/sub]H[sub]5[/sub]OH](http://en.wikipedia.org/wiki/Ethanol) is nothing like [CH[sub]3[/sub]OCH[sub]3[/sub]](http://en.wikipedia.org/wiki/Dimethyl_ether) despite having the same empirical formula C[sub]2[/sub]H[sub]6[/sub]O, to give a simple but fairly drastic example.

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [January 12, 2008, 6:49pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/26 "2008-01-12T18:49:28Z")

</div>

I’m just wondering what the isotopes of 7 are…

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [January 12, 2008, 9:35pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/27 "2008-01-12T21:35:05Z")

</div>

There are some relationships between physics and prime numbers. I recently read “Stalking the Riemann Hypothesis: The Quest to Find the Hidden Law of Prime Numbers” by Dan Rockmore. I liked it a lot. Near the end it covers some of the eerier coincidences (or maybe not) between primes and certain properties of atoms.

---

<div class="post-metadata">

**Author:** ![psychonaut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/psychonaut/32/4655_2.png) [@psychonaut](https://boards.straightdope.com/u/psychonaut)\
**Post date:** [January 12, 2008, 11:31pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/28 "2008-01-12T23:31:31Z")

</div>

[QUOTE=WoodenTaco]  
Prime numbers do have a relationship to bases, though. You know that famously idiotic problem about 1/3? 1/3 is 0.333333. If you multiply 1/3 by 3, it gives you 1. But, if you multiply 0.333333 by 3, you get 0.9999999! Shocking! (Of course, the real answer is that 0.9999999 = 1).  
[/QUOTE]  
I think you’re missing a few ellipses there.

---

<div class="post-metadata">

**Author:** ![The\_Flying\_Dutchman](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@The\_Flying\_Dutchman](https://boards.straightdope.com/u/The_Flying_Dutchman)\
**Post date:** [January 13, 2008, 12:08am UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/29 "2008-01-13T00:08:19Z")

</div>

[QUOTE=WoodenTaco]  
For instance, base 10 has the prime factors 1, 2, 5, and 10.  
[/QUOTE]

[QUOTE=Hypnagogic Jerk]  
:dubious:  
[/QUOTE]

[QUOTE=WoodenTaco]  
Okay. 2 and 5. My bad. It’s pretty much the same, right?  
[/QUOTE]

[QUOTE=Diogenes the Cynic]  
7.  
[/QUOTE]

What a clusterfuck !

3

---

<div class="post-metadata">

**Author:** ![Strain\_of\_Thought](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@Strain\_of\_Thought](https://boards.straightdope.com/u/Strain_of_Thought)\
**Post date:** [January 13, 2008, 12:36am UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/30 "2008-01-13T00:36:59Z")

</div>

[QUOTE=ZenBeam]  
I’m just wondering what the isotopes of 7 are…  
[/QUOTE]

If you wanted to stretch the analogy, you could say either variations in the unit or in the representation of the quantity. (7 apples vs. 7 orangutans; 7/1 versus 2+5)

But that sorta raises a deeper question: where do the subatomic particles show up in number theory? Aren’t quantities… uh… ‘indivisible’? Maybe prime numbers as protons and neutrons makes more sense.

And where would you find zero and infinity in a chemistry text?

---

<div class="post-metadata">

**Author:** ![Triskadecamus](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@Triskadecamus](https://boards.straightdope.com/u/Triskadecamus)\
**Post date:** [January 13, 2008, 4:32am UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/31 "2008-01-13T04:32:46Z")

</div>

To me primes are holes in the arithmetic, not building blocks. You can’t get 17 by multiplying anything. It’s a hole in the multiplication table.

Probably says more about me than about math, though.

Tris

---

<div class="post-metadata">

**Author:** ![Hypnagogic\_Jerk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hypnagogic_jerk/32/4252_2.png) [@Hypnagogic\_Jerk](https://boards.straightdope.com/u/Hypnagogic_Jerk)\
**Post date:** [January 13, 2008, 5:06am UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/32 "2008-01-13T05:06:40Z")

</div>

[QUOTE=Hypnagogic Jerk]  
I think your proposition is correct, and it’s an interesting one: a rational number x will have a terminating n-ary expansion if and only if the denominator of its representation as an irreducible fraction has only as prime factors the prime factors of n. At first I only glanced at your post and wasn’t really sure what you were trying to say. I’d like to find a proof of this fact, though (not right now because I’m tired, but I’ll think about it tomorrow); or you can post yours if you want.  
[/QUOTE]

Okay, here’s the proof. The proposition is the following: the n-ary expansion of a rational number x terminates if and only if x = p/q where gcd(p,q) = 1 and the prime factors of q are all factors of n.

Suppose that the n-ary expansion of x terminates. Then we can write  
x = m + sum(a\_k n^(-k), k=1..l) with m an integer, l in {0, 1, 2, …} and a\_k in {0, 1, …, n-1}  
llll= (m n^l)/n^l + sum((a\_k n^(l-k))/n^l, k=1..l)  
llll= (m n^l + sum(a\_k n^(l-k), k=1..l))/n^l.  
We can rewrite the preceding fraction as an irreducible fraction x = p/q, and all prime factors of q will be factors of n^l and therefore of n.

Now suppose that we can write x = p/q where gcd(p,q) = 1 and where all prime factors of q are factors of n. Then there exists an integer l such that n^l x = m an integer, which we rewrite as x = m/n^l = m n^(-l). This means that the n-ary expansion of x ends at the l-th position after the point (or before).

---

<div class="post-metadata">

**Author:** ![Monty](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/monty/32/47_2.png) [@Monty](https://boards.straightdope.com/u/Monty)\
**Post date:** [January 13, 2008, 10:20am UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/33 "2008-01-13T10:20:51Z")

</div>

[QUOTE=WoodenTaco]  
This schtick will happen for more fractions than just 1/3. The same is true for 1/6 (0.16666 \* 6 = 0.999999), 1/7 (0.14141414 \* 7 = 0.999999),  
[/QUOTE]

What am I missing here (or did I get whooshed)? Last I heard, 6_6=36 so that number ends in 6, not 9 and 14_7=98 so that number has 98 repeating.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [January 13, 2008, 3:13pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/34 "2008-01-13T15:13:19Z")

</div>

.14141414… = 14/99, not 1/7.

---

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [January 13, 2008, 5:48pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/35 "2008-01-13T17:48:03Z")

</div>

The OP asks if prime numbers are like “elements”, not like the chemical elements that compose the periodic table. He only mentions the chemical elements as an aside, after the question.

So, literally, yes, and not just “like”. In fact prime numbers ARE elements, they are elemental and irreduceable building blocks, of integer products.

---

<div class="post-metadata">

**Author:** ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)\
**Post date:** [January 13, 2008, 5:49pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/36 "2008-01-13T17:49:24Z")

</div>

We’ve discussed the matter of repeating decimals many times. Here’s a thread which contains links to other threads and to a report on the subject:

> **[Does 0.9999… equal 1?](https://boards.straightdope.com/sdmb/showthread.php?t=375481)**
>
> I seem to remember that the proof of some basic property of rational numbers depends on whether 0.9999… (infinitely repeating decimal) is considered equal to 1 or is considered less than 1. I’m thinking that the property had to do with a one-to-one...

If you search on the words “repeating” and “decimals” in the SDBM archives you’ll find other threads about the subject.

---

<div class="post-metadata">

**Author:** ![glee](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@glee](https://boards.straightdope.com/u/glee)\
**Post date:** [January 13, 2008, 7:56pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/37 "2008-01-13T19:56:52Z")

</div>

[QUOTE=petew83]  
One way: Lead cannot be turned into gold. 7 cannot be turned into 19.

Both are the basic building blocks of a certain level of organization.  
.  
[/QUOTE]

I appreciate that you’re exploring, but I can’t see any serious relationship. 🙂

A broken car cannot turn into a parking lot.  
Eggs can turn into an omelette but an omelette cannot turn into eggs.

Bricks are basic building blocks of houses.  
LEGO is the basic building block of a theme park.

---

<div class="post-metadata">

**Author:** ![petew83](https://avatars.discourse-cdn.com/v4/letter/p/7bcc69/32.png) [@petew83](https://boards.straightdope.com/u/petew83)\
**Post date:** [January 13, 2008, 7:59pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/38 "2008-01-13T19:59:10Z")

</div>

[QUOTE=Strain of Thought]  
where would you find zero and infinity in a chemistry text?  
[/QUOTE]

In chemistry, since by definition it only deals with matter, zero could the point where matter becomes energy. Infinity might be a black hole. 🙂

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [January 13, 2008, 9:06pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/39 "2008-01-13T21:06:16Z")

</div>

[QUOTE=Monty]  
What am I missing here (or did I get whooshed)? Last I heard, 6_6=36 so that number ends in 6, not 9 and 14_7=98 so that number has 98 repeating.  
[/QUOTE]

What you’re missing in the first case is that the number doesn’t end at all, so you just go on seeing the carries (3 + 6 = 9) forever, never hitting a terminal 6. In the second case, it wasn’t your fault, but, as **ultrafilter** points out, .14141414… isn’t actually 1/7.

---

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [January 13, 2008, 9:18pm UTC](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250/40 "2008-01-13T21:18:43Z")

</div>

\>In chemistry, since by definition it only deals with matter, zero could the point where matter becomes energy. Infinity might be a black hole.

“Physics” is generally defined as the study of matter, and is probably the scientific field that most fundamentally deals with energy and certainly black holes. Chemistry is more the study of interactions between chemical elements and chemical compounds, isn’t it?

[Previous page](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250.md?page=1)

[Next page](https://boards.straightdope.com/t/are-prime-numbers-like-elements/433250.md?page=3)
