Least positive integer, modular problem HELP

  • Thread starter Thread starter sg001
  • Start date Start date
  • Tags Tags
    Integer Positive
sg001
Messages
134
Reaction score
0

Homework Statement



find the least positive integer n for which 5^{n} \equiv 1 (mod17) or 5^{n} \equiv -1 (mod 17)



Homework Equations





The Attempt at a Solution



I really don't understand and method to doing these problems as I can't use a calculator and I can only work out powers maybe up to 4 or 5 (depending) in my head... the answer says its 8 but how would I work out in my head 5^{8} +1 and then know it was divisible by 17?

There must be an easier way,,, please help!
 
Physics news on Phys.org
sg001 said:

Homework Statement



find the least positive integer n for which 5^{n} \equiv 1 (mod17) or 5^{n} \equiv -1 (mod 17)

Homework Equations


The Attempt at a Solution



I really don't understand and method to doing these problems as I can't use a calculator and I can only work out powers maybe up to 4 or 5 (depending) in my head... the answer says its 8 but how would I work out in my head 5^{8} +1 and then know it was divisible by 17?

There must be an easier way,,, please help!

The trick is to keep reducing mod 17 as you go. So:

5^2 = 25 = 8 (mod 17)
5^4 = 8 * 8 = 64 = 13 = -4 (mod 17)
5^8 = (-4) * (-4) = 16 = -1 (mod 17)

If you wanted you could have computed 5^2, 5^3, 5^4, 5^5, ... the same way. But note that 5^16 = 1 (mod 17) by Fermat's little theorem. So if 5^n = 1 or 5^n = -1, n must divide 16. So we only have to check n = 2, 4, and 8.
 
SteveL27 said:
The trick is to keep reducing mod 17 as you go. So:

5^2 = 25 = 8 (mod 17)
5^4 = 8 * 8 = 64 = 13 = -4 (mod 17)
5^8 = (-4) * (-4) = 16 = -1 (mod 17)

If you wanted you could have computed 5^2, 5^3, 5^4, 5^5, ... the same way. But note that 5^16 = 1 (mod 17) by Fermat's little theorem. So if 5^n = 1 or 5^n = -1, n must divide 16. So we only have to check n = 2, 4, and 8.

Thanks a bunch steve that cleared things up heaps!
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top