Two To The Fiftieth Plus One

Is 2 50 + 1 2^{50}+1 a prime number?

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.

40 solutions

Akshay Yadav
Jan 19, 2016

We know,

a n + 1 + b n + 1 = ( a + b ) ( a n a n 1 b + . . . + b n ) a^{n+1}+b^{n+1}=(a+b)(a^{n}-a^{n-1}b+...+b^{n})

Where n n is an even number.

And,

2 50 + 1 = ( 2 10 ) 5 + 1 5 2^{50}+1=(2^{10})^{5}+1^{5}

Clearly it is not a prime.

Easier Method is to check its last digit which is 5.

Kushagra Sahni - 5 years, 4 months ago

Log in to reply

Yeah but this is technical method.

Akshay Yadav - 5 years, 4 months ago

That is an incorrect identity; the correct one is a n + 1 + b n + 1 = ( a + b ) ( a n a n 1 b + a n 2 b 2 + b n ) a^{n+1} + b^{n+1} = (a+b) (a^n - a^{n-1} b + a^{n-2} b^2 - \ldots + b^n) .

EDIT: Fixed exponents.

Ivan Koswara - 5 years, 4 months ago

Log in to reply

As you may have already spotted yourself even your identity is wrong in that it should be a n + b n = ( a + b ) ( a n 1 a n 2 b + a n 3 b 2 + b n 1 ) a^n+b^n=(a+b)(a^{n-1}-a^{n-2}b+a^{n-3}b^2-\ldots+b^{n-1})

Nikesh Solanki - 5 years, 4 months ago

2^1=2 2^2=4 2^3=8 2^4=16 Then 32 (2 again)(it returns to beginning per 4) So; the biggest number dividing 4 in x<50, is 48, so 2 remains. We need to take 2 power of 2 and this gives us the first grade number in 2^50 = 4 If we go to beginning, 4+1 =5 divides 5 Clearly total amount is not a prime number

Harun Sayı - 5 years, 4 months ago

Log in to reply

That's the way I did it. Great job. This way, you don't have to worry about copying down an identity incorrectly.

Addison McKenzie - 5 years, 4 months ago

sound logic but poor language mrs it to some extent

Satyabrata Biswas - 5 years, 4 months ago

This is the better solution, because it takes the path of least resistance to the correct answer.

Andrei Rotenstein - 3 years, 7 months ago

I pressed the wrong button by mistake :( any ways, here's a bonus question

bonus: Can you tell which number divides 2 50 + 1 2^{50}+1 ?

Sravanth C. - 5 years, 4 months ago

Log in to reply

5 is a factor for all factors of 2^(4n+2) + 1 where n is an integer 0 or greater. In this case n is 12.

Owen Berendes - 5 years, 4 months ago

Using my product below 2 25 + 2 13 + 1 = 125 × 268501 2^{25}+2^{13}+1 = 125\times268501 , and 2 25 2 13 + 1 = 41 × 101 × 8101 2^{25}-2^{13}+1 = 41\times101\times8101

Kay Xspre - 5 years, 4 months ago

How is it clear from last statement that it's not a prime number?

HIMANSHU PRAJAPATI - 5 years, 4 months ago

Log in to reply

Because a prime number only has itself and 1 as factors - if this were how the # were constructed it couldn't be prime. (It should have been said to be more clear).

Matthew P - 3 years, 12 months ago

n must be odd. However, 50 is even.

ตั๋ง ไม้จัตวา - 5 years, 4 months ago

Also, it is easy to work it to 0 mod 5, so is divisible by 5.

Peter Higgins - 4 years, 6 months ago

Bhai mujy is ki smj nai i

Rizwan Nasir - 3 years, 8 months ago

Log in to reply

Please speak in English. Translation: I didn't understand this.

Sharky Kesa - 3 years, 8 months ago

That is not a correct analogy. 2^4 + 1 = 2^4 +1^4 = 17 which is prime.

Ron Briscoe - 3 years, 8 months ago

Log in to reply

The solution is fixed.

Sharky Kesa - 3 years, 8 months ago

That identity is incorrect, the correct one is a^{n+1}-b^[n+1}=(a-b)(a^n+a^{n-1}b+...+ab^{n-1}+b^n)

Tarmo Taipale - 3 years, 7 months ago

So, um, you're saying that the expression 2^50 + 1 = (2^(n+1) + 1^(n+1)) and that n is supposed to be even? Isn't n here 49? There's nothing "clear" about your solution....

Andrei Rotenstein - 3 years, 7 months ago

Log in to reply

No, he's saying n = 4 n=4 .

Sharky Kesa - 3 years, 7 months ago

5 is no longer prime? Please help me understand

Jade Sy - 3 years, 5 months ago

Log in to reply

Any number bigger than 5 and ending in a 5 is a multiple of 5 and so not prime.

David Hobday - 2 years, 11 months ago

I’m getting it now.

Jade Sy - 3 years, 5 months ago

For n=1 to n=n you find that when n is an even number it is prime . So the answer is incorrect.

Paolo Giammarco - 3 years, 2 months ago

Log in to reply

Hmm... I didn't know 2 6 + 1 = 65 2^6+1=65 was a prime.

Sharky Kesa - 3 years, 2 months ago

I've never seen a "is this number prime?" Puzzle where the answer was yes.

Alex Warneke - 3 years, 8 months ago

Log in to reply

Indeed, it is difficult to prove that a number is prime when it is as big as 2 50 + 1 2^{50}+1 . That is why in most of the questions you get the answer 'no'.

Akshay Yadav - 3 years, 8 months ago
Santiago Hincapie
Jan 27, 2016

2^{ 1 }\quad \equiv \quad 2\quad (mod\quad 10)\\ 2^{ 2 }\quad \equiv \quad 4\quad (mod\quad 10)\\ 2^{ 3 }\quad \equiv \quad 8\quad (mod\quad 10)\\ 2^{ 4 }\quad \equiv \quad 6\quad (mod\quad 10)\\ 2^{ 5 }\quad \equiv \quad 2\quad (mod\quad 10)\\ \vdots \\ then\quad 2^{ 50 }\quad \equiv \quad 4(mod\quad 10)\quad and\quad 2^{ 50 }+1\quad \equiv \quad 5(mod\quad 10)\quad therefore\quad was\quad a\quad multiple\quad of\quad 5

2^50 + 1 = 2^50 + 1^50 = (2+1) ( 2^49 + ..... +1^49)

Subramanyan R - 4 years, 1 month ago

Log in to reply

But 2⁵⁰+1 is not divisible by 3! 2²≡1(mod3), so 2⁵⁰+1≡1²⁵+1≡2(mod3). That is 2⁵⁰+2 is divisible by 3!

Robert Morewood - 3 years, 5 months ago

I like this solution best because it gives the smallest prime factor! Alternative solution to get five as a factor: 2⁵⁰+1 = 4²⁵+1 = (4+1)(4²⁴-4²³+4²²-4²¹+...+1) using the sum of odd powers factorization.

Robert Morewood - 3 years, 5 months ago

I like this one, too.

Nancy Torok - 2 years, 10 months ago

What if it ended with 3 or 7 or 9? What would you do?

Davi V - 2 years, 8 months ago

Yeah, I first went with the, "If it IS prime, it wouldn't be set at this level," then with the last digit of successive powers repeating every four times (2-4-8-6-2-4...) so that it was easy to see 2 to the 50th ended in 4.

Barry Evans - 5 years, 4 months ago

Log in to reply

clearly, the simplest explanation.

Charles Ziegenfus - 3 years ago
Kay Xspre
Jan 20, 2016

( 2 50 + 2 ( 2 25 ) + 1 ) 2 ( 2 25 ) = ( 2 25 + 1 ) 2 ( 2 13 ) 2 = ( 2 25 + 2 13 + 1 ) ( 2 25 2 13 + 1 ) (2^{50}+2(2^{25})+1)-2(2^{25}) = (2^{25}+1)^2-(2^{13})^2 = (2^{25}+2^{13}+1)(2^{25}-2^{13}+1) Hence proved that 2 50 + 1 2^{50}+1 is not a prime.

Similar to mod 5 solution 2^50 mod 5 = 4^25 mod 5 = (5-1)^25 mod 5 = -1 mod 5 = 4 So 2^50+1 mod 5 = 0 hence divisible by 5

حكيم جورج - 3 years, 7 months ago

Best solution.

kashish Mahajan - 2 years, 7 months ago

How can you say that it's not a prime number from your final statement?

HIMANSHU PRAJAPATI - 5 years, 4 months ago

Log in to reply

should be obvious , the final product is a multiply of 2 numbers.

let ( 2 25 + 2 13 + 1 ) = A a n d ( 2 25 2 13 + 1 ) = B (2^{25} + 2^{13} + 1 ) = A \\ and \\ (2^{25} - 2^{13} + 1 ) = B

2 50 + 1 = ( A ) ( B ) 2^{50} + 1 = (A)(B)

A prime can only be a multiple of 1 and no other integer.

P r i m e = ( P r i m e ) ( 1 ) ( A ) ( B ) Prime = (Prime) (1) ≠ (A)(B)

( 2 50 + 1 ) = ( 2 50 + 1 ) ( 1 ) = ( A ) ( B ) (2^{50} + 1) = (2^{50} + 1) (1) = (A)(B) , hence it is not prime because it has more factor than itself and 1 which is A and B

Ne-ko Nya - 5 years, 4 months ago

Log in to reply

Thanx buddy

HIMANSHU PRAJAPATI - 5 years, 4 months ago
Moy Sanchez
Jan 31, 2016

It ends with a 5. The pattern for (2^n) ends in 2, 4, 8, 6... For n=1,2,3,4 and n=50 is only a multiple of n=2, therefore it ends in 4, and 4+1=5

Exactly my approach. Ends in 5 so not prime. I did it in my head, not sure why I got it wrong. 2, 4, 8, 6...plus 1 means 3, 5, 9, 7...

Anu Sood - 4 years, 3 months ago

this is how i did it as well

Elijah Shaw - 3 years, 11 months ago
Jason Short
Jan 31, 2016

If it were prime, the proof would be well beyond the scope of the question. Since the question is multiple choice, it must be composite.

Haha... That was my initial thought as well! 😎

Geoff Pilling - 4 years, 1 month ago

Well 50 ! + 1 50! + 1 is prime, and that proof is pretty easy, so maybe this one could be too?

Lawrence Kesteloot - 3 years, 10 months ago

Log in to reply

I don't think so. 50 ! + 1 50!+1 is composite. It's just not divisible by any prime under 50. In fact, Wolfram Alpha gives the prime factorisation as 149 × 3989 × 74195127103 × 6854870037011 × 100612041036938568804690996722352077 149 \times 3989 \times 74195127103 \times 6854870037011 \times 100612041036938568804690996722352077 .

Sharky Kesa - 3 years, 8 months ago
Kristian Takvam Staff
Jan 29, 2016

Lazy programmer's solution:

1
2
3
4
5
6
7
target = 2 ** 50 + 1
stop = int(target ** .5)

for i in xrange(2, stop):
    if target % i == 0:
        print('{} is divisible by {}'.format(target, i))
        break

1
1125899906842625 is divisible by 5

Not very elegant!

Daksh A Agarwal - 4 years, 7 months ago

Log in to reply

..as the Roman Centurian remarked to Hannibal before being stuck in the chest with a tusk.

John Nicholson - 3 years, 2 months ago

You could've stopped at the square root instead of half.

James Lui - 3 years, 11 months ago

Log in to reply

He did. target ** .5 means target to the power of 0.5 (square root), not half.

Chris Mitchell - 3 years, 7 months ago

It's a terrible solution because, short of trying to run it themselves, the reader has to trust that the output you posted really came from the program you wrote. You can't just read this and see the truth of the claim yourself: you have to already know that 2^50 + 1 = 1125899906842625.

Andrei Rotenstein - 3 years, 7 months ago
Chris Galanis
Jan 28, 2016

1 + 2 50 = 1 + 4 2 48 = 1 4 + 4 ( 2 12 ) 4 1+2^{50} = 1+4\cdot2^{48} = 1^4 + 4\cdot (2^{12})^4 Thus by Sophie Germain we got ( 2 25 + 2 13 + 1 ) ( 2 25 2 13 + 1 ) (2^{25}+2^{13}+1)(2^{25}-2^{13}+1)

No is prime number, because 2 50 2^{50} ends in 24, the same digits of 2 10 2^{10} . Then 2 50 + 1 2^{50}+1 has the last digit equal to five. Therefore 2 50 + 1 2^{50}+1 does not prime number.

Ajax Bjax
Sep 14, 2017

2 50 + 1 = ( 2 2 + 1 ) × ( 2 48 2 46 + 2 44 2 42 + 2 6 + 2 4 2 2 + 2 0 ) 2^{50}+1 = (2^{2}+1)\times (2^{48}-2^{46}+2^{44}-2^{42} + \cdots - 2^{6} +2^{4}-2^{2}+2^{0})

through a telescoping series expansion. Hence 2 50 + 1 2^{50}+1 is divisible by 5.

Giulio Pecile
Jan 31, 2016

2^50 +1= 2^50+2 2^25+1-2 2^25=(2^25+1)^2-2*2^25=(2^25+1)^2-(2^13)^2=(2^25+1+2^13)(2^25+1-2^13)

Well, I just thought that 2^50 -1 is a Mersenes prime so 2^50 +1 would have to be a twin prime to be a prime and there is darn few of those so by probability, I decided it would not be a prime. Not very scientific but that was the best I could do. I could have gone to a calculator and discovered that it ended in 4 then plus 1 is five and it then could not be a prime

Sacha Guitry - 3 years, 2 months ago
Corwin Silverman
Oct 8, 2018

2 2 4 1 ( m o d 5 ) 2^2 \equiv 4 \equiv -1 \pmod{5} . Since 25 is odd, ( 1 ) 25 1 ( m o d 5 ) (-1)^{25} \equiv -1 \pmod{5} , so 2 50 ( 2 2 ) 25 1 ( m o d 5 ) 2^{50} \equiv (2^2)^{25} \equiv -1 \pmod{5} . Hence, 2 50 + 1 0 ( m o d 5 ) 2^{50}+1 \equiv 0 \pmod{5} , so 2 50 + 1 2^{50}+1 is divisible by 5. It follows that 2 50 + 1 2^{50}+1 is not prime.

Dvd Avins
Dec 24, 2018

Powers of any number follow a cycle in their last digit. For powers of 2, it's 2, 4, 8, 6 and then repeating. The cycle length is 4. So just as 2^4 end in 6, 2^48 will also end in 6. 2^50, having two more factors of 2, ends in 4. Therefor 2^50+1 ends in 5, which means it must be divisible by 5.

James Schuller
Dec 21, 2018

By Jim Schuller: 2*2 + 1 = 5. And 5 multiplied by any number of 2's is going to be divisible by 5. Hence 2^2+1 cannot be prime.

Gia Hoàng Phạm
Oct 12, 2018

We know that the last digit of 2 4 n + 1 2^{4n+1} is 2,the last digit of 2 4 n + 2 2^{4n+2} is 4,the last digit of 2 4 n + 3 2^{4n+3} is 8 and the last digit of 2 4 n 2^{4n} is 6. Since 50 = 2 + 12 4 50=2+12*4 so the last digit of 2 50 2^{50} is 4 so the last digit of 2 50 + 1 2^{50}+1 is 5 and therefore it divisible by 5 and that means it not prime as well as the answer is No

Joan Miquel Pc
Sep 20, 2018

( 1 + p 10 ) ( 1 p 10 + p 20 p 30 + p 40 ) = 1 + p 50 (1+p^{10})(1-p^{10}+p^{20}-p^{30}+p^{40}) = 1+p^{50} is a non-trivial factorization of p 50 + 1 p^{50}+1 , so it is not a prime number.

Trung Vu
Sep 15, 2018

2 50 + 1 = 4 25 + 1 ( 1 ) 25 + 1 1 + 1 = 0 ( m o d 5 ) 2^{50}+1= 4^{25}+1\equiv(-1)^{25}+1\equiv-1+1=0 \pmod{5}

It's divisible by 5 so it's not a prime

Ulises Ortega
Jul 7, 2018

Elliot Hoffenberg
May 19, 2018

2^50+1 = (2^10)^5 +1 = ((1024)^4) *1024 +1 = (a number ending in 6) * 1024 + 1 = a number ending in 4 + 1 = number ending 5 = divisible be 5 = composite

Fay Rowland
Apr 15, 2018

Complete the square: 2^50 + 1 = (2^25)^2 - 2 2^25 + 1 - 2 2^25 = (2^25 + 1)^2 - 2*2^25 = (2^25 +1)^2 - 2^26 = (2^25 + 1)^2 - (2^13)^2 Difference of two squares = [(2^25 + 1) + (2^13)] * [(2^25 + 1) - (2^13)] composite

Toshit Patil
Apr 13, 2018

By binomial theorem we can write 2^50 i.e. 4^25 as (5-1)^25 . Last term in this expansion would be -1 which would cancel out the +1 while all other terms will contain atleast one '5' making 2^50 +1 a multiple of 5. Hence it isnt a prime number.

Sezgin Ozan
Mar 20, 2018

Doron Ophir
Mar 17, 2018

2^10=1,024, hence 2^20 ends by 6 4*4), 2^40 ends by 6, too. Finally, 2^50 ends by 4, and 2^50+1 ends by 5, thus divides by 5

Takahiro Waki
Feb 23, 2018

2 50 + 1 = ( 5 1 ) 25 + 1 0 m o d 5 2^{50}+1=(5-1)^{25}+1≡0 \mod 5

Scott Rosenstein
Jan 12, 2018

no here are the factors 1 | 5 | 25 | 41 | 101 | 125 | 205 | 505 | 1025 | 2525 | 4141 | 5125 | 8101 | 12625 | 20705 | 40505 | 103525 | 202525 | 268501 | 332141 | 517625 | 818201 | 1012625 | 1342505 | 1660705 | 4091005 | 6712525 | 8303525 | 11008541 | 20455025 | 27118601 | 33546241 | 33562625 | 41517625 | 55042705 | 102275125 | 135593005 | 167731205 | 275213525 | 677965025 | 838656025 | 1111862641 | 1376067625 | 2175126601 | 3389825125 | 4193280125 | 5559313205 | 10875633005 | 27796566025 | 54378165025 | 89180190641 | 138982830125 | 219687786701 | 271890825125 | 445900953205 | 1098438933505 | 2229504766025 | 5492194667525 | 9007199254741 | 11147523830125 | 27460973337625 | 45035996273705 | 225179981368525 | 1125899906842625 (64 divisors)

Renz Mina
Jan 2, 2018

It is divisible by 5. Hence not a prime ( 2 50 + 1 0 ( m o d 5 ) 2^{50}+1\equiv0\pmod{5} )

Trần Nam
Nov 5, 2017

2^50 ends with 4 so 2^50+1 ends with 5

Oli Hohman
Nov 4, 2017

2^50 = 4^25. We know that powers of 4 modulo 10 alternate between 4 and 6, so odd powers yield 4 and even powers yield 6. 25 is odd, so 4^25 mod 10 is 5. So, adding 1 gives you 6 mod 10, which is divisible by 2, hence, 2^50 + 1 is not prime.

El Dal
Nov 4, 2017

2^(4x)= AA...AA6

2^((4x)+1)= BB...BB2 (..AA6 *2)

2^((4x)+2)= CC...CC4

(2^((4x)+2))+1=CC...CC5

Where x is a positive integer (12 in this case)

--> CC...CC5 is divisible by 5; end digit is key

Caleb Owens
Oct 3, 2017

The ones digit of the powers of 2 follow the pattern 2,4,8,6. Therefore, 2 to the 48th would go through this cycle 8 times, and 2 to the 50th would have a ones digit of 4. Adding one would make the ones digit 5, and so the number wouldn't be prime because it is divisible by 5 and it is not 5.

Miksu Rankaviita
Sep 22, 2017

The answer can be found using the Wilson's Theorem which states that an integer p > 1 p \gt 1 is a prime iff

( p 1 ) ! 1 ( m o d p ) (p-1)!\equiv -1(\mod p)

If we now substitute p = 2 50 + 1 p=2^{50}+1 and add one to both sides, we get:

2 50 ! + 1 0 ( m o d 2 50 + 1 ) 2^{50}!+1\equiv 0 (\mod 2^{50}+1)

Because ( 2 50 + 1 ) ( 2 50 ! + 1 ) 2^{50}+1) \nmid (2^{50}!+1) , the assumption is wrong and p p is not a prime.

Jonathan Bush
Jul 2, 2017

2^50 = 4^25. 4 is congruent to 4 mod 5. Any even power of 4 is congruent to 1 mod 5, and any odd power is congruent to 4 mod 5. 4^25 + 1 must be divisible by 5.

The number 2 50 + 1 2^{50}+1 is divisible by 5 5 (and clearly greater than 5 5 ) and therefore cannot be a prime number, since

2 4 1 m o d 5 2^4 \equiv 1 \mod 5

and thus

2 50 = ( 2 4 ) 12 × 4 4 m o d 5 2^{50} = (2^4)^{12} \times 4 \equiv 4 \mod 5

whence

2 50 + 1 4 + 1 0 m o d 5 2^{50} + 1 \equiv 4 + 1 \equiv 0 \mod 5 .

Ralph Tetenburg
May 30, 2017

2^(2n+1) is prime for all n is an element of Z^+, and 2^2n is not prime for all n is an element of Z^+

Ruben Sanchez
Apr 17, 2017

Lo he dividido por todos los anteriores con mi calculadora y había uno que sí.

Amogh Keni
Oct 23, 2016

(2^50)+1=((2^10)^5)+1

Since (2^10)=1024 and,

The result of ((Unit place of 1024 i.e. 4)^5) ends with 4,

Then 4+1=5.

Any natural number ending with 5 necessarily CANNOT BE PRIME.

Hence proved.

This is perhaps the easiest logical solution to the given example!!! Hope it's clearly understood by all.

Cnu Reddy
Feb 1, 2016

It's in 2^m +1 form, as per Fermate prime number rule it can be a prime if and only if m is 2^n. In our case 50 cannot be written as 2^n so 2^50 +1 is not a prime.

I'd like someone with a math background to respond to this, since this is the way I did it; and I'd love to know if it's correct.

Jay Dale Akin - 4 years, 5 months ago
Rahul Pal
Feb 1, 2016

i just guessed it...and i was right ....after all there are only two choices..what to worry about ..huh

A S
Feb 1, 2016

2 2 1 ( m o d 5 ) 2^2\equiv -1\pmod{5}
therefore
2 50 1 ( m o d 5 ) 2^{50} \equiv -1\pmod{5}
also
1 1 ( m o d 5 ) 1 \equiv 1 \pmod{5}
adding both
2 50 + 1 0 ( m o d 5 ) 2^{50} +1 \equiv 0 \pmod{5}
so not a prime






Dominic Bryan
Jan 31, 2016

I've checked the statics of 2^n+1 And it's N y y n y n n n y n n n y...

*n: no. *y: yes

Sol I: Obviously, there are more n then y So, it is not prime

Sol II: Since the pattern begin at the fifth tribe, so (50-4) mod 4 : 2

y n n n y n n n ...

So, it is NOT a prime

Both solutions are showing that it's not a prime number

David Molano
Jan 31, 2016

Nope. Since 2 n 2 m o d 5 2^n\equiv 2\mod 5 when n 1 m o d 4 n\equiv 1\mod 4 , then 2 49 2 2^{49}\equiv 2 , and 2 50 4 m o d 5 2^{50}\equiv 4\mod 5 , thus 2 50 + 1 0 m o d 5 2^{50}+1\equiv 0\mod 5 so 5 5 divides 2 50 + 1 2^{50}+1 and so that's not a prime.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...