mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Miscellaneous Math (https://www.mersenneforum.org/forumdisplay.php?f=56)
-   -   why must n be a prime (odd)? (https://www.mersenneforum.org/showthread.php?t=10796)

joblack 2008-10-17 00:57

why must n be a prime (odd)?
 
I´m thinking:

Why must n from 2 exp n be a prime. After wikipedia it says:

Some definitions of Mersenne numbers require that the exponent [I]n[/I] be prime.

A number in the format 2 n - 1, where n is even could be a prime as well?

Mini-Geek 2008-10-17 01:01

[quote=joblack;145609]I´m thinking:

Why must n from 2 exp n be a prime. After wikipedia it says:

Some definitions of Mersenne numbers require that the exponent [I]n[/I] be prime.

A number in the format 2 n - 1, where n is even could be a prime as well?[/quote]
Read the top of the Searching for Mersenne Primes section of the Wikipedia article on it.
[URL]http://en.wikipedia.org/wiki/Mersenne_number#Searching_for_Mersenne_primes[/URL]
It says:
[tex]2^{ab}-1=(2^a-1)\cdot \left(1+2^a+2^{2a}+2^{3a}+\cdots+2^{(b-1)a}\right)[/tex]
Which means that if the exponent, usually referred to as n or p, is composite, i.e. can be split into an a and b as that equation requires, then the related Mersenne number is composite.
The only time that an even n produces a Mersenne prime is n=2 (2^2-1=4-1=3).

jrk 2008-10-17 01:15

[quote=joblack;145609]A number in the format 2 n - 1, where n is even could be a prime as well?[/quote]
A number 2^n-1 with even n will always be divisible by 3.

retina 2008-10-17 01:47

[QUOTE=jrk;145613]A number 2^n-1 with even n will always be divisible by 3.[/QUOTE]Writing a number in base 4 would clearly show the divisibility by 3.

Mini-Geek 2008-10-17 01:54

[quote=retina;145616]Writing a number in base 4 would clearly show the divisibility by 3.[/quote]
2^4-1=4^2-1=15
I'm guessing since 4=3+1, 4^n-1 is divisible by 3. Is this so? If so, why is this? If not, what's the reason?

jrk 2008-10-17 02:09

Well one way to show it with induction:

assume [tex]2^n-1 \equiv 0 (mod 3)[/tex]
[tex]2^n \equiv 1 (mod 3)[/tex]
[tex]2^{(n+2)} = 4*2^n \equiv 1 (mod 3)[/tex]
[tex]2^{(n+2)}-1 \equiv 0 (mod 3)[/tex]
[tex]2^0-1 \equiv 0 (mod 3)[/tex]

So if it is true for n then it is true for n+2, it is true for n=0, therefore it is true for all positive even n.

retina 2008-10-17 02:12

[QUOTE=Mini-Geek;145618]2^4-1=4^2-1=15
I'm guessing since 4=3+1, 4^n-1 is divisible by 3. Is this so? If so, why is this? If not, what's the reason?[/QUOTE]Writing any number of the form 2[sup]2n[/sup]-1 in base 4 gives: 3333...333 (a total of n 3's).

axn 2008-10-17 03:01

Basic result:

1. (a^n - b^n) is divisible by (a-b).
2. a^(mn) = (a^m)^n = (a^n)^m

From these two basic results, everything else follows.

jrk 2008-10-17 03:19

Yep. My induction method for even n was pointless :smile:

davieddy 2008-10-17 08:52

[quote=Mini-Geek;145611]Read the top of the Searching for Mersenne Primes section of the Wikipedia article on it.
[URL]http://en.wikipedia.org/wiki/Mersenne_number#Searching_for_Mersenne_primes[/URL]
It says:
[tex]2^{ab}-1=(2^a-1)\cdot \left(1+2^a+2^{2a}+2^{3a}+\cdots+2^{(b-1)a}\right)[/tex]
Which means that if the exponent, usually referred to as n or p, is composite, i.e. can be split into an a and b as that equation requires, then the related Mersenne number is composite.
The only time that an even n produces a Mersenne prime is n=2 (2^2-1=4-1=3).[/quote]
This is bugging me:
If 2^a-1 is a factor, then surely 2^b-1 must be as well.

ATH 2008-10-17 09:51

[QUOTE=davieddy;145649]This is bugging me:
If 2^a-1 is a factor, then surely 2^b-1 must be as well.[/QUOTE]

Yes:

2[sup]ab[/sup] - 1 = (2[sup]b[/sup]-1)*(1+2[sup]b[/sup]+2[sup]2b[/sup]+2[sup]3b[/sup]+ ... +2[sup](a-1)b[/sup])


All times are UTC. The time now is 14:53.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.