1

Suppose $n|a^2-1$ where $a>1$ and n is odd. Show that $n=$gcd$(a-1,n)$gcd$(a+1,n)$.

Part 2

Show that if $a<n-1$ then this gives a nontrivial factorization of n

What I did:

I found the gcd$(a-1,a+1)$ which is $2$ if $a$ is odd and $1$ if $a$ is even. And that's it. I'm stuck

GRS
  • 2,495

2 Answers2

3

Since $n|(a^2-1)$, we have $\gcd(a^2-1, n)=n$.

First assume that $a$ is even. Then $\gcd(a-1, a+1)=1$. Therefore $$\gcd(a^2-1, n)=\gcd(a-1, n)\gcd(a+1, n)$$ and we are done.

Now suppose $a$ is odd. Then $\gcd(a^2-1, n)=\gcd((a^2-1)/4, n)$. This is because $n$ is odd. Since $\gcd((a-1)/2, (a+1)/2)=1$, we get that $$\gcd((a-1)/2, n)\gcd((a+1)/2, n)=n$$ Again using the fact that $n$ is odd to write $\gcd((a-1)/2, n)=\gcd(a-1, n)$ and $\gcd((a+1)/2, n)=\gcd(a+1, n)$, we are done.

  • Thank you very much, I understand your method. Can you please comment if my method below is also correct? – GRS Dec 16 '15 at 14:42
1

Suppose $n=p_1p_2...p_k$, then $p_1|a-1$ or $p_1|a+1$ (because $p$ is odd and $2|p$ doesn't hold). Continuing, $p_2|a-1$ or $p_2|a+1$.

Thus $(a-1)=p_i...p_l$ and $(a+1)=p_m...p_n$ where $[m,n,l,i] \in [1...k]$

Then since

$p_m...p_n|a+1$ and also $p_m...p_n|n$

$p_i...p_l|a-1$ and also $p_i...p_l|n$

We can conclude that gcd$(a-1,n)=p_i...p_l$ and gcd$(a+1,n)=p_m...p_n$

Thus putting all together we get the required result.

GRS
  • 2,495
  • I do not follow your reasoning. In the first line you write "because $p$ is odd.." You do not need to use the oddity of $p_1$ here. If a prime $p$ divides $xy$, then either $p|x$ or $p|y$. This is true regardless of whether $p$ is odd or not. Secondly, I do not see how you concluded that $\gcd(a-1, n)=p_i\cdots p_l$. Check your reasoning. All in all, your proof has not used the oddity of $n$ at any point. – caffeinemachine Dec 16 '15 at 14:59
  • @caffeinemachine I see. I thought I could just say that $p$ divides only 1, $a+1$ or $a-1$. Since $n=p_1 p_2 ... p_k$, then $p_1$ will divide $a+1$ or $a-1$. Other factors will also follow this. Then $(a+1,n)=$all factors that divide $a+1$ and the rest of factors must divide $(a-1)$. But both of these factors together make up $n$ – GRS Dec 16 '15 at 15:05