Least positive integer, modular problem HELP

In summary, the least positive integer n for which 5^n is equivalent to 1 or -1 (mod 17) is 8. The trick is to reduce mod 17 as you go and use Fermat's little theorem to check only n = 2, 4, and 8.
  • #1
sg001
134
0

Homework Statement



find the least positive integer n for which 5[itex]^{n}[/itex] [itex]\equiv[/itex] 1 (mod17) or 5[itex]^{n}[/itex] [itex]\equiv[/itex] -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[itex]^{8}[/itex] +1 and then know it was divisible by 17?

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

Homework Statement



find the least positive integer n for which 5[itex]^{n}[/itex] [itex]\equiv[/itex] 1 (mod17) or 5[itex]^{n}[/itex] [itex]\equiv[/itex] -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[itex]^{8}[/itex] +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.
 
  • #3
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!
 

FAQ: Least positive integer, modular problem HELP

1. What is the definition of a least positive integer?

A least positive integer is the smallest positive whole number in a set of numbers.

2. How is a least positive integer determined in a modular problem?

In a modular problem, the least positive integer is the smallest number that satisfies the given modular equation.

3. How do you solve a least positive integer modular problem?

To solve a least positive integer modular problem, you need to find the modular inverse of the given number in the equation. Then, you can use the inverse to find the least positive integer.

4. Can there be more than one least positive integer in a modular problem?

No, there can only be one least positive integer in a modular problem. This is because the least positive integer is the smallest number that satisfies the modular equation.

5. What is the significance of finding the least positive integer in a modular problem?

Finding the least positive integer in a modular problem is important because it helps to simplify and solve the equation. It also allows for a unique solution to the problem.

Back
Top