2

Exercise complicated Number theory Show that $\left(a, b\right) =1$ and $a> b$ then $$\left(a-b,\frac{a^m-b^m}{a-b}\right)=(a-b,m)$$I tried some, but what I got was.$\;\;\;\;$I tried some, but what I got was $$\left(a-b,\frac{a^m-b^m}{a-b}\right)=(a-b,a^{m-1}+a^{m-2}b+\;...+ab^{m-2}+b^{m-1})$$

Can this help?

benjamin_ee
  • 3,759

1 Answers1

4

Let's consider the seemingly simpler case. We want to show that for any $x$, $$\left(x-1,\frac{x^{m}-1}{x-1}\right)=(x-1,m)$$

Hint Modulo $x-1$, $$x\equiv 1\implies x^j\equiv 1$$

You can do the very same for your problem, since $\mod a-b$, $a\equiv b\implies a^j\equiv b^j$ for any $j$. Thus, $\mod a-b$ $${a^{m - 1}} + {a^{m - 2}}b + \; \cdots + a{b^{m - 2}} + {b^{m - 1}} \equiv {a^{m - 1}} + {a^{m - 1}} + \cdots + {a^{m - 1}} + {a^{m - 1}} = m{a^{m - 1}}$$

whence the $\gcd$ equals $(a-b,ma^{m-1})$. Can you finish?

If you want to avoid modular arithmetic, recall that $(a,b)=(b,r)$ where $r$ is the remainder in $a=qb+r$. Now, for each $1\leq i\leq m-1$ we have $${a^{m - i}}{b^i} - {a^m} = {a^{m - i}}\left( {{b^i} - {a^i}} \right)$$ and the RHS is divisible by $a-b$, so we can use the division algorithm to make each $a^{m-i}b^i$ into $a^m$ in the RHS, which is what I did above.

Pedro
  • 122,002