Fermat’s theorem for n = 3 & Schur’s theorem imply infinitely many primes

Link here. Quite short and accessible. Also contains other neat & similarly inclined proofs towards other results. Thought it was worth sharing!

πŸ‘︎ 32
πŸ’¬︎
πŸ‘€︎ u/powderherface
πŸ“…︎ Oct 09 2020
🚨︎ report
Finite fields, Fermat primes, and Gaussian integers

I was wondering a while back if any finite fields could be considered as analogous to the Gaussian (complex) integers, rather than the usual real integers. Arithmetic on finite fields of prime order can all be modeled as arithmetic on the integers modulo that prime. Could something similar be done with Gaussian integers?

As it turns out the answer is yes, but only for a few exceptional cases. For a finite field to behave like the Gaussian integers it must contain an element that behaves analogously to the imaginary unit i, that is, its square must be congruent to -1. The most obvious cases are then the finite fields whose order is a prime that is one greater than a square number. The only such primes are all Fermat primes, except for 2 which is a trivial case.

GF(65537) is the finite field whose order is the largest Fermat prime. Instead of the usual way of specifying its elements (by the integers modulo 65,537 they are congruent to), we can instead introduce an imaginary unit i, which is congruent to 256 (so that i^2 is congruent to -1). The other imaginary unit -i is then congruent to 65,281.

Each element in GF(65537) could then be represented as a sum of an real and imaginary integer, treating 256 - i and 256i + 1 as congruent to zero. These congruence relations function analogously to moduli, so that each element of GF(65537) is mapped to a congruence class of Gaussian integers that forms a slightly rotated square grid of side length sqrt(65537). The finite fields GF(257), GF(17) and GF(5) all behave similarly but GF(3), derived from smallest Fermat prime, does not (since 2 is not a square number). So we have four finite fields that behave like Gaussian integers.

Not sure if this has any practical application but it sure is interesting to me.

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/MGreenMN
πŸ“…︎ Nov 27 2020
🚨︎ report
The volunteer computing project PrimeGrid has discovered a 6.25 million digit prime number, largest Generalized Fermat prime, second largest non-Mersenne prime, and second largest prime found by the project. primegrid.com/forum_threa…
πŸ‘︎ 833
πŸ’¬︎
πŸ‘€︎ u/numbermaniac
πŸ“…︎ Sep 03 2017
🚨︎ report
How to check if a large number is prime using Fermat Primality Test?

I know that if p is prime and a is not divisible by p then this congruency holds.

But I'm not able to understand how and why exactly the algorithm works. Can someone please explain it in a simple way? How would I check whether a given number n, where 1 <= n <= 10^(12) is prime?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/ApoorvWatsky
πŸ“…︎ Oct 01 2020
🚨︎ report
Fermat's Theorem for Prime Exponents

I think I have a proof for Fermat's Theorem for all prime exponents that is only two pages. Has this already been done?

πŸ‘︎ 3
πŸ’¬︎
πŸ“…︎ Jan 29 2020
🚨︎ report
Fermat's Theorem About Prime Numbers Intrigued Me

So Fermat had a theorem about the sum of two squares equaling a prime number if said prime number has a remainder of 1 when divided by 4. And it seems to be true for numbers other than prime numbers.

Well, it made me think a bit about something.

Since it is known whether or not a number can be expressed as the sum of two squares just by dividing by 4, is there something like that, for say, the sum of two cubes? What about the sum of three cubes? Or, more generally, something like this:

Is there a way to check whether a number can be expressed as k numbers each raised to the nth power? And what about k = n?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Shin-Chichigami
πŸ“…︎ Nov 13 2017
🚨︎ report
[Number Theory] Fermat Primes

Hi there,

I am totally lost on how to prove the following statement:

If n is not a power of 2, then 2^n + 1 is not a prime. I tried playing around with factoring something of the form x^m+y^m but realized quickly that's easier said than done.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/qball3438
πŸ“…︎ Oct 15 2015
🚨︎ report
PrimeGrid discovers largest Generalized Fermat prime, second largest prime found by the project, and second largest non-Mersenne prime, 6.25 million digits long primegrid.com/forum_threa…
πŸ‘︎ 26
πŸ’¬︎
πŸ‘€︎ u/numbermaniac
πŸ“…︎ Sep 03 2017
🚨︎ report
Do mathematicians think there are infinitely many Fermat primes?

i.e. infinitely many primes of the form 2^n + 1

Currently the only Fermat primes known are 3, 5, 17, 257, 65537.

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/duckmath
πŸ“…︎ May 20 2017
🚨︎ report
[Number Theory] Fermat's Little Theorem and Mersenne Primes

After explaining Fermat's little theorem, Recreations in the Theory of Numbers says: "In Mersenne's numbers, that is, numbers of the form 2^n - 1, the exponent n is always a prime and therefore odd (except for n = 2, a trivial case). Hence, since in Fermat's theorem p is also a prime and odd, it follows that mn must be even, and therefore m must be even, equal to, say 2r, and then p = 2rn+1. [Here is where I get confused] This tells us, therefore, that if, for example, 2^11 -1 has a prime divisor, p (if it has any divisor, it has a prime divisor, of course), it must be of thr form 2rΒ·11+1 = 22r+1, and in fact when r = 1, the prime 23 divides 2^11 - 1."

I feel like I understand Fermat's little theorem, but I don't see how the conclusion follows from it. Why does Fermat's little theorem imply all prime divisors of 2^n - 1 (when n is prime) must be of the form 2rn+1?

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/199546
πŸ“…︎ Jan 01 2017
🚨︎ report
Proof that every positive integer is a prime power, disproof of fermats last theorem, proof of the riemann hypothesis

we begin with a simple lemma:

lemma: let f and g be functions, then f and g are linear and commute with each other
proof: every high school student knows this. ∎

theorem 1: every positive integer is a prime power
proof: use log(x+y)=log(x)+log(y)=log(xy) by distributing the log and recombining. taking exp of both sides gives x+y = xy for all x,y, so addition and multiplication are the same thing. it follows that fields and groups are the same thing. every finite field has prime power order, but there is a cyclic group of order n for all positive integers n, hence every positive integer is a prime power. ∎

theorem 2: fermats last theorem is false
proof: take the nth root of both sides of x^(n)+y^(n) = z^(n), swap the addition and the root using the lemma, and get x+y=z. choose your favourite integers that satisfy this equation, and you have a counterexample. ∎

theorem 3: the riemann hypothesis is true
proof: we have zeta(s) = 1^-s + 2^-s + 3^-s + ... = (1+2+3+...)^-s = (-1/12)^(-s), which is never zero. hence there are no nontrivial zeros, so the riemann hypothesis is vacuously true. ∎

πŸ‘︎ 41
πŸ’¬︎
πŸ‘€︎ u/ben1996123
πŸ“…︎ Nov 29 2016
🚨︎ report
Extrapolation Gone Wrong: the Case of the Fermat Primes blogs.scientificamerican.…
πŸ‘︎ 37
πŸ’¬︎
πŸ‘€︎ u/CptnCat
πŸ“…︎ Oct 08 2014
🚨︎ report
replacing prime number verification with Baillie–PSW primality routines using FLINT (Fast Library for Number Theory) failed (BPSW is slower than Fermat albeit more accurate but accuracy is not important in this context)ο»Ώ

FLINT headers:

#include "flint/flint.h" #include "flint/ulong_extras.h"

function:

static bool FermatProbablePrimalityTestFast(const mpz_class& n, unsigned int& nLength, CPrimalityTestParams& testParams, bool fFastFail = false) {

  mp_limb_t d = mpz_get_ui(n.get_mpz_t());

  if (n_is_probabprime_BPSW(d))
    return true;


  //if (mpz_probab_prime_p (n.get_mpz_t(), 12))
  //   return true;


// Faster GMP version
mpz_t&amp; mpzE = testParams.mpzE;
mpz_t&amp; mpzR = testParams.mpzR;

mpz_sub_ui(mpzE, n.get_mpz_t(), 1);
mpz_powm(mpzR, mpzTwo.get_mpz_t(), mpzE, n.get_mpz_t());
if (mpz_cmp_ui(mpzR, 1))
    return true;
if (fFastFail)
    return false;
// Failed Fermat test, calculate fractional length
mpz_sub(mpzE, n.get_mpz_t(), mpzR);
mpz_mul_2exp(mpzR, mpzE, nFractionalBits);
mpz_tdiv_q(mpzE, mpzR, n.get_mpz_t());
unsigned int nFractionalLength = mpz_get_ui(mpzE);
if (nFractionalLength &gt;= (1 &lt;&lt; nFractionalBits))
    return error("FermatProbablePrimalityTest() : fractional assert");
nLength = (nLength &amp; TARGET_LENGTH_MASK) | nFractionalLength;
return false;

}

and

static bool FermatProbablePrimalityTest(const CBigNum& n, unsigned int& nLength) { CAutoBN_CTX pctx; CBigNum a = 2; // base; Fermat witness CBigNum e = n - 1; CBigNum r;

if (n_is_probabprime_BPSW(n.getulong()))
    return true;

BN_mod_exp(&amp;r, &amp;a, &amp;e, &amp;n, pctx);
if (r == 1)
    return true;

// Failed Fermat test, calculate fractional length
unsigned int nFractionalLength = (((n-r) &lt;&lt; nFractionalBits) / n).getuint();
if (nFractionalLength &gt;= (1 &lt;&lt; nFractionalBits))
    return error("FermatProbablePrimalityTest() : fractional assert");
nLength = (nLength &amp; TARGET_LENGTH_MASK) | nFractionalLength;
return false;

}

πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/xpm888
πŸ“…︎ Feb 02 2014
🚨︎ report
Killing Maths Mosquitoes with Atomic Proofs: roots of two, Fermat and prime numbers youtube.com/watch?v=W1OkV…
πŸ‘︎ 3
πŸ’¬︎
πŸ“…︎ Oct 24 2015
🚨︎ report
We need more Number Theory memes.
πŸ‘︎ 2k
πŸ’¬︎
πŸ‘€︎ u/12_Semitones
πŸ“…︎ Nov 22 2021
🚨︎ report
How do I prove that every even integer is the sum of two primes?

I'm writing a book on number theory, so naturally I'm wanting to give the reader a nice example of a nice result from number theory. One way to do this would be to provide an explanation of how a particular kind of integral was proved. But I'm not sure how to go about doing this in a way that's understandable to the layman. For example, I can list a bunch of examples of integrals, but I don't have any experience with them.

The best I can think of doing is to list one integral, then give a hint about how to do it, but then give an example of a particularly difficult case of the integral. Does anyone have any advice on how to approach this problem?

πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/mathGPT2Bot
πŸ“…︎ Dec 11 2021
🚨︎ report
weekly dooty stowey-memer report

all these dooty stowey-memers is make me so hard, good sir

thank mr skeltal

πŸ‘︎ 7
πŸ’¬︎
πŸ“…︎ Dec 09 2021
🚨︎ report
SERIOUS: This subreddit needs to understand what a "dad joke" really means.

I don't want to step on anybody's toes here, but the amount of non-dad jokes here in this subreddit really annoys me. First of all, dad jokes CAN be NSFW, it clearly says so in the sub rules. Secondly, it doesn't automatically make it a dad joke if it's from a conversation between you and your child. Most importantly, the jokes that your CHILDREN tell YOU are not dad jokes. The point of a dad joke is that it's so cheesy only a dad who's trying to be funny would make such a joke. That's it. They are stupid plays on words, lame puns and so on. There has to be a clever pun or wordplay for it to be considered a dad joke.

Again, to all the fellow dads, I apologise if I'm sounding too harsh. But I just needed to get it off my chest.

πŸ‘︎ 17k
πŸ’¬︎
πŸ‘€︎ u/anywhereiroa
πŸ“…︎ Jan 15 2022
🚨︎ report
Blind Girl Here. Give Me Your Best Blind Jokes!

Do your worst!

πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Leckzsluthor
πŸ“…︎ Jan 02 2022
🚨︎ report
This subreddit is 10 years old now.

I'm surprised it hasn't decade.

πŸ‘︎ 14k
πŸ’¬︎
πŸ‘€︎ u/frexyincdude
πŸ“…︎ Jan 14 2022
🚨︎ report
Dropped my best ever dad joke & no one was around to hear it

For context I'm a Refuse Driver (Garbage man) & today I was on food waste. After I'd tipped I was checking the wagon for any defects when I spotted a lone pea balanced on the lifts.

I said "hey look, an escaPEA"

No one near me but it didn't half make me laugh for a good hour or so!

Edit: I can't believe how much this has blown up. Thank you everyone I've had a blast reading through the replies πŸ˜‚

πŸ‘︎ 20k
πŸ’¬︎
πŸ‘€︎ u/Vegetable-Acadia
πŸ“…︎ Jan 11 2022
🚨︎ report
What starts with a W and ends with a T

It really does, I swear!

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/PsychedeIic_Sheep
πŸ“…︎ Jan 13 2022
🚨︎ report
Why did Karen press Ctrl+Shift+Delete?

Because she wanted to see the task manager.

πŸ‘︎ 11k
πŸ’¬︎
πŸ‘€︎ u/Eoussama
πŸ“…︎ Jan 17 2022
🚨︎ report
Permutations arising from modular exponentiation

Hello,

here's a short question from elementary number theory / modular exponentiation.

Let p > 2 be prime, and consider the map

N -> {0, ..., p-1} mapping i to 2^i mod p.

It immediately follow from Euler's theorem that 2^i mod p = 2^j mod p if i is congruent to j modulo phi(p), where phi denotes Euler's totient function.

Therefore, the map is periodic with a period at most phi(p) = p-1. But for which primes is equality achieved? It happens quite often, for instance for p = 3, 5, 11, 13, 19 the period of the map is indeed p-1, but not for p=7 where the map has only period three: 2, 4, 1, 2, 4, 1, ....

(It seems p=7 being Mersenne is a hint?) What is the general criterion on p?

Second: assume p is such a prime such that the period is the maximum p-1 allowed by Euler's theorem. We then get a permutation on the set of p-1 elements, defined by restricting our map to {1, ... , p-1} . Indeed, this map does not hit zero because 2^i mod p = 0 would mean that 2^i = k * p for some k > 0 but p was supposed to be a prime > 2 so it can't occur in the decomposition of 2^i, and the injectivity follows from the assumed "maximal period" property. Also, Fermat's little theorem says that the permutation takes the value 1 at p-1.

Is there anything else interesting to say about this permutation? It starts off with all powers of two <= p-1, and then fills all gaps between them. Does it do so in a way that has strong properties (any symmetries, for instance) or not? Sorry for the this part of the question being a little vague. Thanks for nice answers.

Edit: apparently, these permutations are closely related to so-called Costas permutations which have no symmetries at all in some sense. Nevertheless, the second part of the question is still open.

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/Dan-mat
πŸ“…︎ Nov 22 2021
🚨︎ report
So 2 trees got arrested in the town I live...

Heard they've been doing some shady business.

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/K1ll47h3K1n9
πŸ“…︎ Jan 18 2022
🚨︎ report
What is the scariest tree?

BamBOO!

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/K1ll47h3K1n9
πŸ“…︎ Jan 18 2022
🚨︎ report
What is a a bisexual person doing when they’re not dating anybody?

They’re on standbi

πŸ‘︎ 11k
πŸ’¬︎
πŸ‘€︎ u/Toby-the-Cactus
πŸ“…︎ Jan 12 2022
🚨︎ report
Geddit? No? Only me?
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/shampy311
πŸ“…︎ Dec 28 2021
🚨︎ report
I wanna hear your best airplane puns.

Pilot on me!!

πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/Paulie_Felice
πŸ“…︎ Jan 07 2022
🚨︎ report
E or ß?
πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/Amazekam
πŸ“…︎ Jan 03 2022
🚨︎ report
What did Spartacus say when the lion ate his wife?

Nothing, he was gladiator.

πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/rj104
πŸ“…︎ Jan 15 2022
🚨︎ report
Pun intended.
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Sharmaji1301
πŸ“…︎ Jan 15 2022
🚨︎ report
No spoilers
πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/Onfour
πŸ“…︎ Jan 06 2022
🚨︎ report
Which actor drives the least?

Christopher Walken

πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/TR1771N
πŸ“…︎ Jan 18 2022
🚨︎ report
Covid problems
πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/theincrediblebou
πŸ“…︎ Jan 12 2022
🚨︎ report
These aren't dad jokes...

Dad jokes are supposed to be jokes you can tell a kid and they will understand it and find it funny.

This sub is mostly just NSFW puns now.

If it needs a NSFW tag it's not a dad joke. There should just be a NSFW puns subreddit for that.

Edit* I'm not replying any longer and turning off notifications but to all those that say "no one cares", there sure are a lot of you arguing about it. Maybe I'm wrong but you people don't need to be rude about it. If you really don't care, don't comment.

πŸ‘︎ 12k
πŸ’¬︎
πŸ‘€︎ u/Lance986
πŸ“…︎ Dec 15 2021
🚨︎ report
Spi__
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/Fast_Echidna_8520
πŸ“…︎ Jan 11 2022
🚨︎ report
What did 0 say to 8 ?

What did 0 say to 8 ?

" Nice Belt "

So What did 3 say to 8 ?

" Hey, you two stop making out "

πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/designjeevan
πŸ“…︎ Jan 03 2022
🚨︎ report
I had a vasectomy because I didn’t want any kids.

When I got home, they were still there.

πŸ‘︎ 10k
πŸ’¬︎
πŸ‘€︎ u/demotrek
πŸ“…︎ Jan 13 2022
🚨︎ report
For Gotham
πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/FreeHugsXD
πŸ“…︎ Jan 17 2022
🚨︎ report
I dislike karma whores who make posts that imply it's their cake day, simply for upvotes.

I won't be doing that today!

πŸ‘︎ 15k
πŸ’¬︎
πŸ‘€︎ u/djcarves
πŸ“…︎ Dec 27 2021
🚨︎ report
The Ancient Romans II
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/mordrathe
πŸ“…︎ Dec 29 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.