A number Theory problem for beginners...

Find the remainder when 2 41 2^{41} is divided by 23 23 .


The answer is 3.

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

Chew-Seong Cheong
Oct 10, 2020

2 41 2 6 × 6 + 5 (mod 23) 2 5 ( 64 ) 6 (mod 23) 32 ( 69 5 ) 6 (mod 23) 9 × 5 6 (mod 23) 9 × 2 5 3 (mod 23) 9 × ( 23 + 2 ) 3 (mod 23) 9 × 2 3 (mod 23) 9 × 8 (mod 23) 72 (mod 23) 3 (mod 23) \begin{aligned} 2^{41} & \equiv 2^{6\times 6+5} \text{ (mod 23)} \\ & \equiv 2^5(64)^6 \text{ (mod 23)} \\ & \equiv 32(69-5)^6 \text{ (mod 23)} \\ & \equiv 9 \times 5^6 \text{ (mod 23)} \\ & \equiv 9 \times 25^3 \text{ (mod 23)} \\ & \equiv 9 \times (23+2)^3 \text{ (mod 23)} \\ & \equiv 9 \times 2^3 \text{ (mod 23)} \\ & \equiv 9 \times 8 \text{ (mod 23)} \\ & \equiv 72 \text{ (mod 23)} \\ & \equiv \boxed 3 \text{ (mod 23)} \end{aligned}

why can't we have 2 as a remainder using Euler's theorem

Log in to reply

72 mod 23 = 3, not 2.

Pi Han Goh - 8 months ago
Pi Han Goh
Oct 10, 2020

By Fermat's little theorem , 2 22 ( m o d 23 ) 1 2 44 ( m o d 23 ) 1 2 41 2 3 ( m o d 23 ) 1 2 41 ( m o d 23 ) 8 1 . 2^{22} \pmod{23} \equiv 1 \quad \implies \quad 2^{44} \pmod{23} \equiv 1 \quad \implies \quad 2^{41} \cdot 2^3 \pmod{23} \equiv 1 \quad \implies \quad 2^{41} \pmod{23} \equiv 8^{-1}. We're left to find the multiplicative inverse . That is, we have to find the smallest positive integer x x such that there exist an integer y y satisfying 8 x + 23 y = 1 8x + 23y = 1 . A simple trial and error shows that ( x , y ) = ( 3 , 1 ) (x,y) = (3,-1) . Hence, 2 41 ( m o d 23 ) 3 . 2^{41} \pmod{23} \equiv \boxed3.

I have a question why can't we use Euler's theorem in this case? as phi(41) --> will result in 40 and hence our sum will be easier

Log in to reply

I believed you got your Euler theorem formula messed up. Please read up Euler's totient function again.

Pi Han Goh - 8 months ago

Log in to reply

Yeah, I read but could not understand, can you tell me where is the problem?

Log in to reply

@Dibyojyoti Bhattacharjee ETF states that if a a and b b are coprime, then a c m o d c = a c m o d ϕ ( b ) m o d b a^c \bmod c = a^{c \bmod \phi(b)} \bmod b .

In this case, a = 2 , c = 41 , b = 23 a = 2, c = 41, b = 23 . So you're not computing ETF(41) at all.

Pi Han Goh - 8 months ago

Log in to reply

@Pi Han Goh Thanks for the help, and sorry for troubling you with this little issue...

Log in to reply

@Dibyojyoti Bhattacharjee Not at all. We come here to learn after all!

Pi Han Goh - 8 months ago

Log in to reply

@Pi Han Goh Yes, we are...

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...