1

$(2^m - 1, 2^n - 1) = 2^d - 1$ where $d = (m,n)$
my work:
I assumed $m = da$ , $n = db$ for $a,b \in \mathbb{Z}$.
Now, $2^m - 1$ = $2^{da} - 1$ = $(2^d)^a - 1$ = $x^a - 1$ where $x = 2^d$. similarly
$2^n - 1$ = $x^b - 1$
Now, using $x^a - 1 = (x - 1)(x^{a-1} + x^{a - 2} + .... + x + 1)$ and $x^b - 1 = (x - 1)(x^{b - 1} + x^{b - 2} + ..... + x + 1)$

clearly $(x - 1)$ is a factor common in both but how to show that
$(x^{a-1} + x^{a - 2} + .... + x + 1)$ and $(x^{b-1} + x^{b - 2} + .... + x + 1)$ can't have a common factor

  • i have also viewed a link containing the same topic but i just need the answer to the step i m stuck in.. thank you – rahul kumar Apr 02 '15 at 08:18

2 Answers2

1

One way to deal with your particular step is to show that $\gcd(x^{a} -1, x^{b} - 1) = x - 1$, when $\gcd(a, b) = 1$. (Actually, a slight variation on the same argument would yield a proof of your original statement, but still.)

Assume $a \ge b \ge 0$, and proceed by induction on $b$. The case $b = 0$ being obvious, assume $b > 0$, divide $a$ by $b$ obtaining $a = q b + r$, with $0 \le r < b$, and note that $$ x^{a} - 1 = x^{b q + r} - 1 = x^{b q} x^{r} - 1 \equiv x^{r} - 1 \pmod{x^{b} - 1}. $$ Therefore $\gcd(x^{a} -1, x^{b} - 1) = \gcd(x^{b} -1, x^{r} - 1)$, which is $x - 1$ by the inductive hypothesis, as $1 = \gcd(a, b) = \gcd(b, r)$.

0

If $a=b$ this means you have $m=n=d$ so this is trivial.

Assume now that $a\neq b$, well you can exchange both so that we can always assume $a>b$ :

$$x^{a-b}(x^{b-1}+...+x+1)=x^{a-1}+...+x^{a-b+1}+x^{a-b} $$

Hence :

$$x^{a-1}+...+x+1-x^{a-b}(x^{b-1}+...+x+1)=x^{a-b-1}+...+x+1 $$

It implies that $\gcd(x^{a-1}+...+x+1,x^{b-1}+...+1)$ divides $\gcd(x^{a-b-1}+...+x+1,x^{b-1}+...+1)$. Furthermore $\gcd(a-b,b)=\gcd(a,b)=1$. This is the heridity of an induction on $N$ :

$$\text{ for all integers } 1\leq a,b\leq N \text{ with } \gcd(a,b)=1 \text{ we have : } $$

$$\gcd(x^{a-1}+...+x+1,x^{b-1}+...+1)=1$$