It's almost prime

Find the remainder when 2 340 2^{340} is divided by 341 341 .


The answer is 1.

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

Aditya Raut
Aug 1, 2014

341 = 11 × 31 341= 11\times 31

2 5 = 32 1 ( m o d 31 ) 2 340 1 ( m o d 31 ) 2^5 = 32\equiv 1 \pmod{31} \implies 2^{340} \equiv 1 \pmod{31} .....(i)

Fermat's little theorem,

2 10 1 ( m o d 11 ) 2 340 1 ( m o d 11 ) 2^{10} \equiv 1 \pmod{11} \implies 2^{340} \equiv 1 \pmod{11} .......(ii)

From (i) and (ii) , 2 340 1 ( m o d 31 × 11 ) 2^{340}\equiv 1 \pmod{31\times 11}

Hence answer is 1 \boxed{1}

No idea of Fermet's theorem please provide some link or please explain it precisely..!!

Rahul Jain - 6 years, 10 months ago

Log in to reply

It says that for any prime numeber p p ,for any integer a a such that g c d ( a , p ) = 1 gcd(a,p)=1 , we get that a p 1 1 ( m o d p ) a^{p-1} \equiv 1 \pmod{p} simple, that's Fermat's little theorem!

Aditya Raut - 6 years, 10 months ago

Log in to reply

got it thanks..!!!

Rahul Jain - 6 years, 10 months ago

hey please elaborate it
is it possible to break 341 = 31*11 please explain it !!

Rishabh Jain - 6 years, 10 months ago

Log in to reply

Fundamental proeperty, it is that if

a b ( m o d c ) a\equiv b \pmod{c}

And

a b ( m o d d ) a\equiv b \pmod{d}

Then

a b ( m o d c d ) a\equiv b \pmod{cd} , simple !

Aditya Raut - 6 years, 10 months ago

Know..wut? I just guessed it ...:P..Too tired to bash

Krishna Ar - 6 years, 10 months ago

Log in to reply

I also just guessed!!!

Anuj Shikarkhane - 6 years, 10 months ago

Once you have seen that 2 5 1 ( m o d 31 ) 2^5 \equiv 1 \pmod{31} and 2 10 1 ( m o d 11 ) 2^{10} \equiv 1 \pmod{11} you know that 2 10 1 ( m o d 341 ) 2^{10} \equiv 1 \pmod {341} so 2 340 ( 2 10 ) 34 1 ( m o d 341 ) 2^{340} \equiv \left(2^{10}\right)^{34} \equiv 1 \pmod{341}

Paolo Bentivenga - 6 years, 10 months ago

Log in to reply

Thanks, updated.

Aditya Raut - 6 years, 10 months ago

thnx for updating

Nam Cao Vũ Hoàng - 6 years, 5 months ago
Mika Servi
Dec 10, 2014

341 divide 340 canot be so borrow 1 from 2 it will become 1. and the only no. left is 1

This solution is completely incorrect. What are you showing?

Sharky Kesa - 4 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...