divisible problems 4

Is 2 32 1 2^{32}-1 prime?

no yes both i dont know

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

22 solutions

Yang Cheng
Nov 7, 2014

2 32 1 = ( 2 16 1 ) ( 2 16 + 1 ) B o t h 2 16 1 a n d 2 16 + 1 a r e N a t u r a l n u m b e r s g r e a t e r t h a n 1 T h u s 2 32 1 i s n o t a p r i m e n u m b e r . 2^{32}-1=(2^{16}-1)(2^{16}+1) \\ Both \quad 2^{16}-1 \ and \ 2^{16}+1 \quad are\ \mathbb{N}atural\ numbers \ greater\ than\ 1\\ Thus\ 2^{32}-1 \quad is\ not\ a\ prime\ number.

nice and easy explanation...... thanks!!

Yash Parmar - 6 years, 1 month ago
Zi Song Yeoh
Nov 7, 2014

It follows from the fact that if 2 p 1 2^p - 1 is a prime, then p p must be a prime. Since 32 32 is clearly not a prime, 2 32 1 2^{32} - 1 is also not a prime.

NOTE : The converse is NOT true!

Those two statements are not logically equivalent

Francine Candido - 6 years, 7 months ago

any explaination or proof?

Chaithanya Chaithu - 6 years, 7 months ago

Log in to reply

If you are referring to a Mersenne prime, then this doesn't work for some prime numbers, such as when p=11, 2 11 1 = 2047 2^{11} - 1 = 2047 , 23 89 = 2047 23*89= 2047

Jonny g18 - 6 years, 7 months ago

Log in to reply

@Jonny, he said it doesn't work in reverse. Only if 2 p 1 2^{p} - 1 is prime, then you are sure that p p is prime. But it is not necessary that if p p is prime, then 2 p 1 2^{p} - 1 would be prime (you proved that).

Abdelrahman Abounegm - 6 years, 1 month ago
Renah Bernat
Nov 7, 2014

No. The function 2^x has the pattern for natural numbers in which the last digit of each output ends in 2, 4, 8, 6 (and continue the pattern.) The number 32 would correspond to the fourth number in this pattern, ie 6. So 2^32 ends in 6. One less this number would end in 5. Therefore 2^32 - 1 is divisible by 5; not prime.

Roushan Kumar
Nov 7, 2014

2^32 = 2^4n and last digit of 2^4n is 6 .So last digit of 2^32 -1 = last digit of 2^4n - 1 .i.e. 6-1-5. So it is clear that it is divisible by 5 and hence CAN'T be prime

Nicolas Bryenton
Nov 7, 2014

Note that 2 1 ( m o d 3 ) 2 \equiv -1 \pmod{3}

Therefore, 2 32 ( 1 ) 32 ( m o d 3 ) 1 ( m o d 3 ) 2^{32} \equiv (-1)^{32} \pmod{3} \equiv 1 \pmod {3}

Therefore, 2 32 1 0 ( m o d 3 ) 2^{32} -1 \equiv 0 \pmod 3

3 3 divides 2 32 1 2^{32}-1 , therefore it is not prime.

I did the same way, and then it struck me that we could use Mersenne prime number format

Aadi Naik - 6 years, 7 months ago

what is this theorem or method called??

Nikhil Gupta - 6 years ago

Log in to reply

It's just something I noticed, not something I was taught to do. Call it the Bryenton Method ;)

Nicolas Bryenton - 5 years, 11 months ago
Soumi Mondal
Nov 7, 2014

2^32 = 4294967296 4294967296-1 = 4294967295 (divisible by 5) 2^32 - 1 is not a prime number

Leonard Zuniga
Nov 7, 2014

It goes on Mersenne prime format. Where 2 p 1 { 2 }^{ p }-1 where p p is a prime. Although not all Mersenne numbers are primes, It is safe to assume than anything assuming this format without p being a prime is considered composite number. And since p = 32 p=32 and 32 is not a prime, 2 32 1 {2}^{32} - 1 is definitely not a prime.

Satyendra Kumar
Nov 6, 2014

2 4 = 16 1 ( m o d 3 ) 2 32 1 ( m o d 3 ) 2 32 1 0 ( m o d 3 ) 2 32 i s d i v i s i b l e b y 3. 2 32 i s n o t a p r i m e . 2^{4}=16\equiv 1\pmod{3}\\ \Rightarrow 2^{32}\equiv 1\pmod{3}\\ \Rightarrow 2^{32}-1\equiv 0\pmod{3}\\ \Rightarrow 2^{32}\ is\ divisible\ by\ 3.\\ \Rightarrow 2^{32}\ is\ not\ a\ prime.

What is wrong with the above code?

satyendra kumar - 6 years, 7 months ago

Log in to reply

2 4 = 15 1 ( m o d 3 ) 2 32 1 ( m o d 3 ) 2 32 1 0 ( m o d 3 ) 2 32 i s d i v i s i b l e b y 3. 2 32 i s n o t a p r i m e . 2^{4}=15\equiv 1\pmod{3}\\ \Rightarrow 2^{32}\equiv 1\pmod{3}\\ \Rightarrow 2^{32}-1\equiv 0\pmod{3}\\ \Rightarrow 2^{32}\ is\ divisible\ by\ 3.\\ \Rightarrow 2^{32}\ is\ not\ a\ prime.

I saw a parenthesis typo \pmod(3} on the second one.

Samuraiwarm Tsunayoshi - 6 years, 7 months ago

Log in to reply

Thanks!But how does that affect the whole code?

satyendra kumar - 6 years, 7 months ago

Log in to reply

@Satyendra Kumar Parentheses always come in pairs though.

Samuraiwarm Tsunayoshi - 6 years, 7 months ago
Vibhakar Mohta
Apr 29, 2015

By Fermats theorm If (x,y) = 1 [co-primes] x^{y-1} -1 is a multiple of y. Hence 2^{33-1} -1 =M[33] Hence its not a prime

This can be written as a difference of squares, a^2-b^2, which in turn can be written as (a+b)(a-b), both of which are integers greater than one in this case; therefore, because it has these factors, it can't be prime.

Madanan Marar
Apr 21, 2015

255 is a factor which is divisible by 3 so not a prime

Ankita Kumari
Apr 21, 2015

The final answer will be- 1594884095 and this number is divisible by 5 (because it has the number 5 at the end) and many other numbers. Therefore, it is not a prime number.

Mohammad Al-Sari
Nov 10, 2014

2^n - 1 = multiple of 3 when n is even 2^n +1 = multiple of 3 when n is odd

It's just a pattern I saw. I'm too lazy to find a proof for it mathematically.

Yogesh Ghadge
Nov 10, 2014

From the observations if the power of no. 2 is prime no. Then the no. gained which is subtracted by 1 is prime

Isaac Jacobs
Nov 9, 2014

if we systematically check the terms of the sequence of (2^n)-1, we find that every 2nth term is divisible by 3. Therefore, since (2^32)-1 is the 32nd term and 32= 2*16, (2^32)-1 is divisible by 3 and is not prime.

Gerald Rains
Nov 9, 2014

(2^32 - 1) = (2^16 - 1) * (2^16 + 1) This is a simple difference of two squares.

Sr Somayaji
Nov 9, 2014

Its simple really! We know that a^2-b^2 can always be factorized as (a+b)(a-b). This can be extended to any even exponent. Hence in the given problem, a = 2^16 and b=1! Hence the number can be factorized into 2 natural numbers greater than 1 and thus, it isn't a prime number

Bala Murugan
Nov 7, 2014

the power 32 aint a prime so 2^32-1 is not a prime

Darius Drago
Nov 7, 2014

the given equation can be refactored as (2^16+1)(2^16-1)= (2^2+1)^8 (2^2-1)^8=(5^8)(3^8) which is divisible by 3 and 5 so it is not prime

2^32 = 4294967296 4294967296-1 = 4294967295 (divisible by 5) 2^32 - 1 is not a prime number

Daniel Rabelo
Nov 7, 2014

Another alternative solution: 2 1 = 2 2^{1}=2 (mod 10).. 2 2 = 4 2^{2}=4 (mod 10).. 2 3 = 8 2^{3}=8 (mod 10).. 2 4 = 6 2^{4}=6 (mod 10)..
2 5 = 2 2^{5}=2 (mod 10), so we have a pattern because all the next multiplications will result in the same rest by 10 10 . As 32 / 4 32/4 leaves no remainder 2 32 2^{32} is congruent to 2 4 2^{4} in mod 10. So the last digit of 2 32 1 2^{32}-1 is 5 5 , and every number of this kind is divisible by 5 5 . Then the aswer is no.

Ishan Mishra
Nov 7, 2014

A faster way with much less math is to use the properties of Mersenne numbers.

If n is a composite number, then 2^{n} - 1 is a composite number as well. As 32 has several factors, therefore 2^{32} - 1 will definitely be a composite number.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...