Largest Prime Factor

Find the largest prime factor of 6 64 4 64 { 6 }^{ 64 }-{ 4 }^{ 64 } .


The answer is 1607133116929.

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.

2 solutions

Shourya Pandey
Apr 4, 2016

It is not a very good problem.

6 64 4 64 = 2 64 ( 3 64 2 64 ) = 2 6 4 ( 3 32 + 2 32 ) ( 3 32 2 32 ) 6^{64}-4^{64}=2^{64}(3^{64}-2^{64})=2^64(3^{32}+2^{32})(3^{32}-2^{32})

= 2 64 ( 3 32 + 2 32 ) ( 3 16 + 2 16 ) ( 3 16 2 16 ) =2^{64}(3^{32}+2^{32})(3^{16}+2^{16})(3^{16}-2^{16})

Now, 3 32 + 2 32 = 1153 × 1607133116929 3^{32}+2^{32}=1153×1607133116929

Of the other factors in the product, the largest one is 3 16 + 2 16 = 43112257 3^{16}+2^{16}=43112257 . Regardless, of the other factors being prime or composite, it can be said that the largest prime factor in this case would be 1607133116929 \boxed{1607133116929}

How do you know that 1607133116929 can't be further factorized?

Pi Han Goh - 5 years, 2 months ago

Log in to reply

Can this be solved efficiently without using a computer?

Jesse Nieminen - 5 years, 1 month ago

Log in to reply

Yes, with plenty of time and patience and nothing else better to do.

Pi Han Goh - 5 years, 1 month ago

Log in to reply

@Pi Han Goh I meant efficiently. I don't consider checking all primes less than the square root of 1607133116929 efficient enough. :D

Jesse Nieminen - 5 years, 1 month ago

Log in to reply

@Jesse Nieminen In that case, I doubt there is an efficient approach. Primality testing is mainly left for computers to do.

Pi Han Goh - 5 years, 1 month ago

Can be solved in more easier way by repeatedly factorizing it

Harshit Sahani - 5 years, 2 months ago

Log in to reply

This includes intense multiplication

Harshit Sahani - 5 years, 2 months ago

I used a computer program to calculate the prime factors. The prime factors are 2,601,1253279,8097823. So 6 64 4 64 = 2 113 × 601 × 1253279 × 8097823 6^{64} -4^{64} = 2^{113} \times 601 \times 1253279 \times 8097823

I don't really see an easy way to do this. And anyway, the 'correct answer' is definitely wrong.

Edit: as a matter of fact: 2 32 + 3 32 2^{32} + 3^{32} doesn't equal 1607133116929 1607133116929 at all...

Double edit: I'm stupid, ignore my comment

Alexander Baumgartner - 5 years, 2 months ago

Log in to reply

In my comment, I say that 3 32 + 2 32 = 1607122116929 × 1153 3^{32}+2^{32}=1607122116929 \times 1153 . You had mistook it.

Further, I think that your factorization is wrong. The reasoning is thus :

The last digit of 6 64 4 64 6^{64}-4^{64} : The last digit of any power of 6 6 would be 6 6 and the last digit of any even power of 4 4 would also be 6 6 . Hence, the last digit of the difference would have to be 0 0 .

The last digit of the factorization : From the above logic, it is clear that at least one of the prime factors should be 5. But, that is not the case in the proposed factorization.

Janardhanan Sivaramakrishnan - 5 years, 2 months ago

Log in to reply

You are indeed correct, my apologies. It seems python does not handle divisions with large digits very well, as my program works perfectly for numbers smaller than about 12 digits.

Alexander Baumgartner - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...