You are here:

Advanced Math/Calculation with mod

Advertisement


Question
Hi. Im revising for exams but Ive no idea how to do this question:

Calculate 71^36 (mod 19)

Im pretty sure it isnt as simple as typing 71^36 into calculator. Thanks! :)

Answer
Hi, Eoin,

You must tell me what subject you are studying.  There is something in the subject of number theory regarding an expression of the form:

71^18 (mod 19)

as an instance of

a^(p-1) mod p,

where p is prime.

Let me know as soon as possible.
=====================================
Eoin Asks in Category Advanced Math ...
 
Subject:  Calculation with mod
Private:  no
Question:  Hi. Im revising for exams but Ive no idea how to do this question:

Calculate 71^36 (mod 19)

Im pretty sure it isnt as simple as typing 71^36 into calculator. Thanks! :)
-------------------------------------------
Well, here is the solution, in case you can make use of it, IF YOU ARE STUDYING NUMBER THEORY.

There is a theorem, commonly known as Fermat's theorem (no, not Fermat's Last Theorem) that says:

If p is prime and p does not divide a, then

a^(p-1) mod p = 1

Now 19 is prime and 19 does not divide 71, so that means

71^18 mod 19 = 1

Then 71^36 mod 19 = (71^18 mod 19)^2 = 1^2 = 1.

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Paul Klarreich

Expertise

I can answer questions in basic to advanced algebra (theory of equations, complex numbers), precalculus (functions, graphs, exponential, logarithmic, and trigonometric functions and identities), basic probability, and finite mathematics, including mathematical induction. I can also try (but not guarantee) to answer questions on Abstract Algebra -- groups, rings, etc. and Analysis -- sequences, limits, continuity. I won't understand specialized engineering or business jargon.

Experience

I taught at a two-year college for 25 years, including all subjects from algebra to third-semester calculus.

Education/Credentials
-----------

©2012 About.com, a part of The New York Times Company. All rights reserved.