You ler no help here

What is the remainder when 1 6 123 16^{123} is divided by 257 257 ?

Details and assumptions

You may use the fact that 257 is a prime number.


The answer is 241.

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.

12 solutions

Kishlaya Jaiswal
Dec 3, 2013

Using modular arithmetic would be the most elegant and fastest way to determine the answer. So,

First write 1 6 123 16^{123} as 16 × ( 1 6 2 ) 61 16 \times (16^2)^{61}

Now, we just need to use the property that 1 6 2 1 ( m o d 257 ) ( 1 6 2 ) 61 ( 1 ) 61 1 ( m o d 257 ) 16^2 \equiv -1 \pmod{257} \Rightarrow (16^2)^{61} \equiv (-1)^{61} \equiv -1 \pmod{257}

So, 16 × ( 1 6 2 ) 61 16 241 ( m o d 257 ) 16 \times (16^2)^{61} \equiv -16 \equiv 241 \pmod{257}

How can we do this if 1 6 123 16^{123} is replaced by 1 6 121 16^{121} ?

Led Tasso - 7 years, 6 months ago

Log in to reply

@Abhimanyu Swami - I didn't replaced 1 6 123 16^{123} with 1 6 121 16^{121} . Actually, we need to find out 1 6 123 = 16 × ( 1 6 2 ) 61 ( m o d 257 ) 16^{123} = 16 \times (16^2)^{61} \equiv \pmod {257} . So, by the properties of congruences, we need to find out ( 1 6 2 ) 61 ( m o d 257 ) (16^2)^{61} \pmod {257} and 16 ( m o d 257 ) 16 \pmod {257} . And at last, multiply both of them to get the answer

Kishlaya Jaiswal - 7 years, 6 months ago

I think he meant what we would do if the problem stated 1 6 121 16^{121} instead of 1 6 123 16^{123} .

We would proceed much like Kishlaya's solution. 1 6 121 = 16 1 6 120 = 16 25 6 60 16 ( 1 ) 60 16 ( m o d 257 ) 16^{121}=16\cdot 16^{120}=16\cdot 256^{60}\equiv 16\cdot (-1)^{60}\equiv \boxed{16\pmod{257}} .

Daniel Liu - 7 years, 6 months ago

I would rather use that 16ˆ{123}=16ˆ{3 x 41} Since 41 is prime, take 16ˆ{3} = 4096, dividing by 257 results 15.9377... Therefore the remainder will be 4096 - 15 x 257 = 241

Pedro Henrique da Silva - 7 years, 6 months ago
Sherry Sarkar
Dec 1, 2013

We start by working out a few examples. 1 6 1 16^1 has a remainder of 16 when divided by 257. 1 6 2 16^2 has a remainder of 256 when divided by 257. Using modular arithmetic, the remainder can be expressed as -1. 1 6 3 16^3 has a remainder of 241 when divided by 257. The remainder can similarly be expressed as -16. At this point, a pattern seems to emerge, so we continue. 1 6 4 16^4 has a remainder of 1 and 1 6 5 16^5 has a remainder of 16.

Thus the pattern of remainders when 1 6 x 16^x is divided by 257 is 16 , 1 , 16 , 1 16,-1,-16,1 We can use this pattern to our advantage and see where the power 123 lands. 123 / 4 123/4 has a remainder of 3, so it lands on -16.

1 6 123 16^{123} has a remainder of -16, or 241.

Arnav Shringi
Dec 2, 2013

16^{ 123 }

=(257-1)^{ 123 } X 16

When (257-1)^{123} is divided by 257, remainder will be -1.

When 16 is divided by 257, remainder will be 16.

-1 X 16 = -16.

To get remainder, subtract 16 from 257.

                                 257 - 16 = 241
Adel Ali
Dec 1, 2013

We can use the fact that 256 = = 1 6 2 256 == 16^{2} , then we can transform 1 6 123 16^{123} to 16 25 6 61 16 * 256^{61} , and since

256 × 256 m o d 257 = = 1 256 \times 256 mod 257 == 1 , then 16 × 25 6 61 m o d 257 = = = 16 × 256 m o d 257 = = 241 16 \times 256^{61} mod 257 === 16 \times 256 mod 257 == 241

Nice, but I'd like to ask about the part of (256 x 256) % 257 =1... is it for each N, (N*N%(N+1)==1) ?

Muhammad Barrima - 7 years, 6 months ago

Log in to reply

Yes, here is a quick proof that I've just come up with: ( n 1 ) × ( n 1 ) n 2 2 n + 1 ( m o d n ) (n-1) \times (n-1) \equiv n^{2} - 2n + 1 \pmod{n}

Since, the mod can be distributed over addition and subtraction, then: n 2 2 n + 1 n 2 ( m o d n ) 2 n ( m o d n ) + 1 ( m o d n ) 0 0 + 1 1 n^{2} - 2n + 1 \equiv n^{2}\pmod{n} - 2n \pmod{n} + 1 \pmod{n}\ \equiv 0 - 0 + 1 \equiv 1

Adel Ali - 7 years, 6 months ago
Andres Fabrega
Dec 2, 2013

16^2=-1(mod 257). Raising both sides to the 61st power: 16^122=-1(mod 257). Multiplying both sides by 16: 16^123=-16(mod 257). Therefore, the remainder when 16^123 is divided by 257 is 241.

Marco Massa
Dec 2, 2013

First 1 6 123 16^{123} = 2 492 2^{492} and 257 = 2 8 2^{8} -1. Let's do the division of the polynomial x 492 x^{492} for x 8 x^{8} -1. The quotient is ( x 484 x^{484} - x 476 x^{476} + x 468 x^{468} +...+ ( 1 ) k (-1)^{k} x 484 8 k x^{484-8k} ) for k=1..60 and the remainder is ( 1 ) k + 1 (-1)^{k+1} x 484 8 k x^{484-8k} for k = 60. (It derive from the algorithm of the divion of polynomial) So for x=2 we have 2 492 2^{492} = ( 2 484 2^{484} - 2 476 2^{476} + 2 468 2^{468} +... 2 12 -2^{12} + 2 4 2^{4} ) - 2 4 2^{4} . Then, the reminder is - 2 4 2^{4} = -16 and so the reminder is 257-16 = 241 \boxed {241}

Duncan Green
Dec 2, 2013

Using Modular Arithmetic:

16^{2} = -1 (mod 257)

Raise -1 to the power of 60 to find 16^{120} (mod 257)

=1 (mod 257)

16^122 = 1 \times 16 ^{2} (mod 257)

=-1

16^{123}=-1 /times 16

=-16 (mod 257) = 241 (mod 257)

Elliot Kienzle
Jan 3, 2014

Given [ p q ] a = [ [ p ] a [ q ] a ] a [p\cdot q]_a = [[p]_a \cdot [q]_a]_a and [ 1 6 4 ] 257 = 1 [16^4]_{257} = 1

[ 1 6 123 ] 257 = [ 1 6 4 30 + 3 ] 257 = [ 1 6 4 30 1 6 3 ] 257 [16^{123}]_{257} = [16^{4 \cdot 30 + 3}]_{257} = [16^{4 \cdot 30} \cdot 16^3]_{257}

= [ ( [ 1 6 4 ] 257 ) 30 [ 1 6 3 ] 257 ] 257 = [([16^4]_{257})^{30} \cdot [16^3]_{257}]_{257}

= [ 1 30 [ 1 6 3 ] 257 ] 257 = [1^{30} \cdot [16^3]_{257}]_{257}

= 1 [ 1 6 3 ] 257 = 1 \cdot [16^3]_{257}

= 241 = \boxed{241}

knowing that 16^2 =256 =-1mod(257), therefore 16^123=-16mod257, or be 257-16=241

julio fonseca - 7 years, 4 months ago

This is truly beautiful. I wept for days after seeing this solution.

William Cui - 7 years, 4 months ago
Nurul Alam Pavel
Dec 15, 2013

16%257=16

16^2%257=256

16^3%257=241

16^4%257=1

16^5%257=16 and so we find a sequence here, the modulus repeats as a sequence of 4 alternate steps

now, 123%4=3.

and, we see from the above that for power of 3 , the remainder is 241.

actually ,tried to solve without the concept of modular arithmetic ..... though i find the best answer is given here by Kishlaya Jaiswal .

Nurul Alam Pavel - 7 years, 5 months ago
Anshuman Singh
Dec 8, 2013

We know that

1 6 123 = 1 6 100 × 1 6 20 × 1 6 3 16^{123} = 16^{100} \times 16^{20} \times 16^{3}

So 1 6 123 257 = 1 6 100 × 1 6 20 × 1 6 3 257 \frac{16^{123}}{257} = \frac{16^{100} \times 16^{20} \times 16^{3}}{257}

so by

1 6 3 257 \frac{16^{3}}{257}

= 4096 257 \frac{4096}{257}

Therefore, We get the remainder 241 \boxed{241}

Sadie Robinson
Dec 8, 2013

Consider that ­ 257 ­ = 256 + 1 257 ­= 256 + 1 and 1 6 123 = 16 × 25 6 61 16^{123} = 16 \times 256^{61} . Since 25 6 n (mod 257 ) 1 256^{n} \mbox { (mod } 257) \equiv -1 for all odd integers n n and 61 61 is odd, 16 × 25 6 61 (mod 257 ) 16 × 1 16 241 (mod 257 ) 16 \times 256^{61} \mbox { (mod } 257 ) \equiv 16 \times -1 \equiv -16 \equiv 241 \mbox { (mod } 257 )

Adrian Wong
Dec 4, 2013

It's obvious, isn't it? My method is by trial. GG bros

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...