Question Number 223346 by cryptograph last updated on 21/Jul/25

$${proof}\:{gcd}\left(\mathrm{2}^{{m}} −\mathrm{1},\mathrm{2}^{{n}} −\mathrm{1}\right)=\mathrm{2}^{{gcd}\left({m},{n}\right)} −\mathrm{1} \\ $$
Answered by Raphael254 last updated on 22/Jul/25

$${if}\:{m}\:=\:{kn},\:{k}\:\in\:\mathbb{Z}^{\ast} : \\ $$$$ \\ $$$${gcd}\left({m},{n}\right)\:=\:{gcd}\left({n},{m}\right)\:=\:\mid{n}\mid \\ $$$$ \\ $$$${if}\:{m}\:\neq\:{kn},\:{k}\:\in\:\mathbb{Z}^{\ast} : \\ $$$$ \\ $$$${gcd}\left({m},{n}\right)\:=\:{gcd}\left({n},{m}\right)\:=\:\mathrm{1} \\ $$$$ \\ $$$$\mathrm{2}^{{m}} −\mathrm{1},\:{m}\:\in\:\mathbb{N}^{\ast} \:{is}\:{a}\:{odd}\:{and}\:{integer}\:{number} \\ $$$$\mathrm{2}^{{n}} −\mathrm{1},\:{n}\:\in\:\mathbb{N}^{\ast\:} {is}\:{a}\:{odd}\:{and}\:{integer}\:{number} \\ $$$$ \\ $$$${Consider}\:{m},\:{n}\:\in\:\mathbb{N}^{\ast} : \\ $$$$ \\ $$$${if}\:{m}\:=\:{kn},\:{k}\:\in\:\mathbb{N}^{\ast} : \\ $$$$ \\ $$$${gcd}\left({m},{n}\right)\:=\:{gcd}\left({n},{m}\right)\:=\:{n}\:\left(\ast\right) \\ $$$$ \\ $$$${if}\:{m}\:\neq\:{kn},\:{k}\:\in\:\mathbb{N}^{\ast} : \\ $$$$ \\ $$$${gcd}\left({m},{n}\right)\:=\:{gcd}\left({n},{m}\right)\:=\:\mathrm{1}\:\left(\ast\ast\right) \\ $$$$ \\ $$$${For}\:\left(\ast\right): \\ $$$$ \\ $$$${gcd}\left(\mathrm{2}^{{m}} \:−\:\mathrm{1},\:\mathrm{2}^{{gcd}\left({m},{n}\right)} \:−\:\mathrm{1}\right)\:=\:\mathrm{2}^{{n}} \:−\mathrm{1} \\ $$$$ \\ $$$$\mathrm{2}^{{m}} \:−\:\mathrm{1}\:=\:{k}\left(\mathrm{2}^{{gcd}\left({m},{n}\right)} \:−\:\mathrm{1}\right) \\ $$$$ \\ $$$${k}\:=\:\frac{\mathrm{2}^{{m}} \:−\:\mathrm{1}}{\mathrm{2}^{{gcd}\left({m},{n}\right)} \:−\:\mathrm{1}}\:=\:\frac{\left(\mathrm{2}^{{n}} \right)^{\frac{{m}}{{n}}} \:−\:\mathrm{1}\:}{\mathrm{2}^{{n}} \:−\:\mathrm{1}} \\ $$$$ \\ $$$$\frac{\left(\mathrm{2}^{{n}} \right)^{\frac{{m}}{{n}}} −\:\mathrm{1}}{\mathrm{2}^{{n}} \:−\:\mathrm{1}}\:=\:\left(\mathrm{2}^{{n}} \right)^{\frac{{m}}{{n}}\:−\:\mathrm{1}} \:+\:\left(\mathrm{2}^{{n}} \right)^{\frac{{m}}{{n}}\:−\:\mathrm{2}} +\:\left(\mathrm{2}^{{n}} \right)^{\frac{{m}}{{n}}\:−\:\mathrm{3}} +\:…\:+\:\left(\mathrm{2}^{{n}} \right)^{\frac{{m}}{{n}}\:−\:\frac{{m}}{{n}}} \:=\:\underset{{i}\:=\:\mathrm{1}\:} {\overset{\frac{{m}}{{n}}} {\sum}}\left(\mathrm{2}^{{n}} \right)^{\frac{{m}}{{n}}\:−\:{i}} \\ $$$$ \\ $$$${It}\:{is}\:{proved}\:{that}\:\exists{k}\:\in\:\mathbb{N}^{\ast} \:{that}\:{satisfies}\:\mathrm{2}^{{m}} \:−\:\mathrm{1}\:=\:{k}\left(\mathrm{2}^{{gcd}\left({m},{n}\right)} \:−\:\mathrm{1}\right)\:{with}\:{m},{n}\:\in\:\mathbb{N}^{\ast} \\ $$$$ \\ $$$${So}: \\ $$$$ \\ $$$${gcd}\left(\mathrm{2}^{{m}} \:−\:\mathrm{1},\:\mathrm{2}^{{n}} −\:\mathrm{1}\right)\:=\:\mathrm{2}^{{gcd}\left({m},{n}\right)} \:−\:\mathrm{1} \\ $$$$ \\ $$$${Now},\:{for}\:\left(\ast\ast\right): \\ $$$$ \\ $$$${gcd}\left(\mathrm{2}^{{m}} \:−\:\mathrm{1},\:\mathrm{2}^{{n}} \:−\:\mathrm{1}\right)\:=\:\mathrm{2}^{\mathrm{1}} \:−\:\mathrm{1} \\ $$$${gcd}\left(\mathrm{2}^{{m}} \:−\:\mathrm{1},\:\mathrm{2}^{{n}} \:−\:\mathrm{1}\right)\:=\:\mathrm{1} \\ $$$$ \\ $$$${How}\:{we}\:{assumed}\:{that}\:{gcd}\left({m},{n}\right)\:=\:\mathrm{1}: \\ $$$$ \\ $$$$\mathrm{2}^{{m}} \:−\:\mathrm{1}\:\neq\:{k}\left(\mathrm{2}^{{n}} \:−\:\mathrm{1}\right),\:{because}: \\ $$$$ \\ $$$$\nexists{k}\:\in\:\mathbb{N}^{\ast} \:{with}\:{m},{n}\:\in\:\mathbb{N}^{\ast} \:{that}\:{satisfies}\:{k}\:=\:\frac{\mathrm{2}^{{m}} \:−\:\mathrm{1}}{\mathrm{2}^{{n}} \:−\:\mathrm{1}},\:{because}: \\ $$$$\frac{\mathrm{2}^{{m}} \:−\:\mathrm{1}}{\mathrm{2}^{{n}} \:−\:\mathrm{1}}\:=\:\mathrm{2}^{{m}\:−\:{n}} \:+\:\mathrm{2}^{{m}\:−\:\mathrm{2}{n}} \:+\:\mathrm{2}^{{m}\:−\:\mathrm{3}{n}} \:+\:…\:\left({when}\:\mathrm{2}^{{p}} \:{of}\:{the}\:{quotient}\:<\:\mathrm{2}^{{n}} \:{of}\:{the}\:{divisor},\:{that}\:{occurs}\:{after}\:\mathrm{2}^{{p}} \:{appears}\:{in}\:{the}\:{quotient}\:{the}\:{integer}\:{quotient}\:\frac{{m}}{{n}}\:{times}\right)\:…\:+\:\frac{\mathrm{2}^{{p}} −\mathrm{1}}{\mathrm{2}^{{n}} }\:+\:\frac{\mathrm{2}^{{p}} \:−\:\mathrm{1}}{\mathrm{2}^{\mathrm{2}{n}} }\:+\:\frac{\mathrm{2}^{{p}} \:−\:\mathrm{1}}{\mathrm{2}^{\mathrm{3}{n}} }\:+\:\frac{\mathrm{2}^{{p}} \:−\:\mathrm{1}}{\mathrm{2}^{{a}×{n}} },\:{where}\:{a}\:\in\:\mathbb{N}^{\ast} \:=\:\underset{{i}\:=\:\mathrm{1}} {\overset{\frac{{m}}{{n}}} {\sum}}\:\mathrm{2}^{{m}\:−\:{i}×{n}} \:+\:\underset{{i}\:=\:\mathrm{1}} {\overset{{a}} {\sum}}\frac{\mathrm{2}^{{p}} \:−\:\mathrm{1}}{\mathrm{2}^{{i}×{n}} } \\ $$$$\: \\ $$$${See}\:{that}\:{after}\:{the}\:{first}\:{sum},\:{all}\:{the}\:{others}\:{numbers}\:{are}\:{not}\:{integers},\:{so}\:\nexists{k}\:\in\:\mathbb{N}^{\ast} \\ $$$$ \\ $$$${So}\:{we}\:{can}\:{confirm}\:{that}: \\ $$$$ \\ $$$${gcd}\left(\mathrm{2}^{{m}} \:−\:\mathrm{1},\:\mathrm{2}^{{n}} \:−\:\mathrm{1}\right)\:=\:\mathrm{1} \\ $$$$ \\ $$$${How}\:{we}\:{proved}\:\left(\ast\right)\:{and}\:\left(\ast\ast\right),\:{so}: \\ $$$$ \\ $$$${gcd}\left(\mathrm{2}^{{m}} \:−\:\mathrm{1},\:\mathrm{2}^{{n}} \:−\:\mathrm{1}\right)\:=\:\mathrm{2}^{{gcd}\left({m},{n}\right)} \:−\:\mathrm{1} \\ $$$$ \\ $$$${In}\:{the}\:{demonstration}\:{we}\:{took}\:{m}\:\geq\:{n}. \\ $$$${But}\:{in}\:{a}\:{similar}\:{way},\:{we}\:{can}\:{prove}\:{all}\:{of}\:{this}\:{to}\:{m}\:<\:{n}. \\ $$