Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have a homework problem that I've attempted for days in vain... It's asking me to find an n so that there is exactly one element of the complete residue system mod n that is its own inverse apart from 1 and n-1. It also asks me to construct an infinite sequence of n's so that the complete residue system mod n has elements that are their own inverses apart from 1 and n-1.

For the first part, I tried all n from 3 up to 40, but none worked... For the second part, I'm really confused...

Could someone please help me with this? Thanks!

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

For the second: What about $3$ and $5 \pmod8$?

For the first: if $x^2\equiv 1$ then $(-x)^2\equiv 1$, too, so if there is only one (besides $\pm 1$), then $x\equiv -x \pmod{n}$, that is $2x=n$.

share|improve this answer
    
If $n=2x$ then $x^2 \equiv 0 \text{ or } x \mod n$ $(=2x)$ –  Mark Bennet Oct 28 '12 at 20:11
    
It shows that there is no such $n$. –  Berci Oct 28 '12 at 20:20
    
This is really helpful, thanks very much! –  hello.world Oct 28 '12 at 22:35
add comment

Hint for the second part. You can choose the values of $n$ as you please and want to satisfy $x^2=kn+1$ for some integer $k$. Try simple cases first.

share|improve this answer
    
thanks! now i get it. –  hello.world Oct 28 '12 at 22:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.