TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

7 is the largest prime followed by a cubic number

69 pointsby bwastiover 6 years ago

4 comments

montenegrohugoover 6 years ago
Math is funny. There&#x27;s an infinite amount of primes, and even though we know a lot of them there&#x27;s still more left (read:infinite). But at the same time, with high-school level algebra we can prove that the largest prime followed by a cubic number is 7.<p>The proof is really simple, but the fact is quite unintuitive (at least for me).
评论 #17904835 未加载
Tomminnover 6 years ago
Huh, I never realized this was this simple. Fleshing out the general case the post mentions.<p>Suppose p=x^n-1 is prime.<p>Note that:<p><pre><code> x^n - 1 = (x^n + x^(n-1) +... + x^2 + x) -( x^(n-1) +... + x^2 + x +1) =&gt;x^n-1 = (x^(n-1) + x^(n-2) + ... + x + 1)(x-1) </code></pre> So if p=x^n-1 is prime, one of the factors must be equal to 1. If the first factor is 1, this implies x=0 and so the second factor is -1. Therefore the second factor must be 1, and x=2.<p>Therefore if x^n-1 is prime, x must be 2. Damn that&#x27;s cool. At first I thought any number 2^n-1 would be prime, but then I realized that obviously the left hand factor can have subfactors. Which is to say I remembered 15 exists.
评论 #17905200 未加载
评论 #17905287 未加载
BennyH26over 6 years ago
The proof states: &quot;For n to be prime either x² + x + 1 = 1 or x - 1 = 1&quot;<p>Could somebody tell me why each of the factor components must be equal to one?
评论 #17904367 未加载
评论 #17904363 未加载
kowdermeisterover 6 years ago
What&#x27;s the deal with all these $ symbols?
评论 #17904561 未加载
评论 #17905420 未加载
评论 #17904559 未加载