mtayab1994
- 584
- 0
Homework Statement
For every x in Z and for every natural number n if:
x^{2}\equiv1(mod47)\Rightarrow x^{n}\equiv1(mod47)orx^{n}\equiv46(mod47)
The Attempt at a Solution
Alright I said since 47 is prime and relatively prime with x then by fermat's little theorem we will get:
x^{46}\equiv1(mod47)
and (x^{2})^{23}\equiv1^{23}(mod47) so that's case one.
And when multiplying both sides by 46 we will get:
46(x^{2})^{23}\equiv46*1^{23}(mod47)
which is x^{47}\equiv46(mod47).
So then i was able to conclude that if n=2k such that k is an integer we get:
x^{n}\equiv1(mod47)
And if we have n=2k+1 (odd number) such that k is an integer we get:
x^{n}\equiv46(mod47)
Is that correct?