A Simple Modular congruence

Compute the remainder value which will be obtained when 25 6 379 256^{379} is divided by 31.


The answer is 4.

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

Since 256 = 2 8 256 = 2^{8} we have that 25 6 379 = ( 2 8 ) 379 = 2 3032 256^{379} = (2^{8})^{379} = 2^{3032} . Now 2 5 = 32 1 ( m o d 31 ) 2^{5} = 32 \equiv 1 \pmod {31} , so 2 3032 = ( 2 3030 ) ( 2 2 ) 1 4 ( m o d 31 ) 4 ( m o d 31 ) 2^{3032} = (2^{3030})*(2^{2}) \equiv 1 * 4 \pmod {31} \equiv 4 \pmod{31} . Thus the desired remainder is 4 \boxed{4} .

That's classic. But since I am bad at modular exponentiation, I chose to go with totient and repeated simplification ^_^. Btw, could you suggest me math resources?

Krishna Ar - 7 years ago

Log in to reply

When I saw the 256 value I immediately converted it to 2^8 to make the calculations easier. With 31 being 1 less than 2^5 it then became clear how to proceed. I was never formally taught modular arithmetic so I'm just picking it up by doing problems like this one. As for resources, you could try Akshaj's post here on Brilliant, (just scroll down to the 'Modular Arithmetic - An Introduction' post):

https://brilliant.org/profile/akshaj-4ozt2s/feed/

Brian Charlesworth - 7 years ago

Log in to reply

Your story is very similar to mine till date I haven't been taught modular arithmetic formally, I learnt it through brilliant by solving the problems.

Satyabrata Dash - 4 years, 11 months ago

Hi. Hey, I asked for math resources. I am comfortable with mod. U cud help me out with geo, algebra and the like :D

Krishna Ar - 7 years ago

R u serious??Your ratings says u don't need such.

Chandrachur Banerjee - 6 years, 9 months ago

I did the same way^_^

Akshat Sharda - 5 years, 9 months ago
Gaurav Manwani
Feb 11, 2017

256^(379)=2^(8 x 379)=2^(3032) To find 2^(3032)MOD31 we can use the Euler Totient Function, which for 31 is 30. A totiative of a natural number 'b' is basically any natural number less than b which is coprime to 'b'. Thus the Totient Function of a number is the cardinality of the set of all totiatives of that number or simply the number of totiatives. It can be generated as Phi(n) = n(1-(1/p)) (1-(1/q)) (........ where p,q... are the prime factors of n. This has been proved by induction on Wolfram MathWorld's page on the same and also on doc.ic.ac.uk . Thus we can observe that for any prime p, Phi(p) will be (p-1). Now, the property is that while taking the modulo of a powered base with respect to a number, the remainder will be the same as when the modulo is taken of the same index raised to the remainder we get when the original index is divided by the Euler Totient of the number with whose respect the original modulo has to be taken. Confusing? Let's say we need to find (N^b)MODp. Then define Phi(p) = q. Now , (N^b)MODp ~(couldn't get the triple equivalent symbol) {N^(bMODq)MODp}. Thus it helps reduce the ordinality of the index, thus simplifying the original modulo. Here, let N=2 b=3032 and p=31 , then q=30. So, (2^3032)MOD31= {2^(3032MOD30)MOD31} = (2^2)MOD31 = 4. Taking more examples will help in understanding it thoroughly. Hope it helped.😊

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...