Modular Arithmetic (someone check my work please)

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
mtayab1994
Messages
584
Reaction score
0

Homework Statement



For every x in Z and for every natural number n if:

[tex]x^{2}\equiv1(mod47)\Rightarrow x^{n}\equiv1(mod47)orx^{n}\equiv46(mod47)[/tex]



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:

[tex]x^{46}\equiv1(mod47)[/tex]

and [tex](x^{2})^{23}\equiv1^{23}(mod47)[/tex] so that's case one.

And when multiplying both sides by 46 we will get:
[tex]46(x^{2})^{23}\equiv46*1^{23}(mod47)[/tex]

which is [tex]x^{47}\equiv46(mod47)[/tex].

So then i was able to conclude that if n=2k such that k is an integer we get:
[tex]x^{n}\equiv1(mod47)[/tex]

And if we have n=2k+1 (odd number) such that k is an integer we get:

[tex]x^{n}\equiv46(mod47)[/tex]

Is that correct?
 
Physics news on Phys.org
It seems like there are a lot of steps missing in this argument.

Choosing n=1, it is clear that no more is needed than to show that ##x \equiv 1 \text{ mod } 47## or ##x \equiv 46 \text{ mod } 47##.

Consider ##(x^2-1)##...
 
Joffan said:
It seems like there are a lot of steps missing in this argument.

Choosing n=1, it is clear that no more is needed than to show that ##x \equiv 1 \text{ mod } 47## or ##x \equiv 46 \text{ mod } 47##.

Consider ##(x^2-1)##...


Yea and x^-1=(x+1)(x-1)
 
... and we know that ##(x^2-1) \equiv 0 \text{ mod } 47## ...