Least positive integer, modular problem HELP

  • Thread starter Thread starter sg001
  • Start date Start date
  • Tags Tags
    Integer Positive
Click For Summary
SUMMARY

The problem involves finding the least positive integer n such that \(5^{n} \equiv 1 \mod 17\) or \(5^{n} \equiv -1 \mod 17\). The solution reveals that \(n = 8\) satisfies the condition, as \(5^8 \equiv -1 \mod 17\). The method emphasizes reducing calculations modulo 17, leveraging Fermat's Little Theorem, which states that \(5^{16} \equiv 1 \mod 17\). Thus, only values of n that divide 16 need to be checked, specifically n = 2, 4, and 8.

PREREQUISITES
  • Understanding of modular arithmetic
  • Fermat's Little Theorem
  • Basic exponentiation techniques
  • Ability to perform calculations modulo a number
NEXT STEPS
  • Study modular exponentiation techniques
  • Learn more about Fermat's Little Theorem and its applications
  • Practice problems involving modular arithmetic
  • Explore the properties of cyclic groups in number theory
USEFUL FOR

Students studying number theory, mathematicians interested in modular arithmetic, and anyone preparing for competitive exams involving mathematical concepts.

sg001
Messages
134
Reaction score
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
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.
 
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!
 

Similar threads

Replies
15
Views
4K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
9
Views
3K
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
1K