2

I can't really figure out how to approach this question..

I have tried to factor 10^2 +1 out of 10^6 +1 , however, the '+1' part makes it difficult.

$10^6 + 1 = (10^2 +1) \cdot 10^3 + 899000$,
$10^2 + 1 = 899000 \cdot ...? $

Here is where I get stuck, because $899000$ is way bigger than $10^2 + 1$..

Does anyone know how to approach this?

Thanks!

Bill Dubuque
  • 282,220
Math420
  • 339
  • 1
  • 5
  • 20

3 Answers3

7

Use $$x^3+1=(x+1)(x^2-x+1).$$ I think it must help.

5

Since $10^2+1=101$ is a prime number, you only have two options:

  1. $101$ divides $10^6+1$, in which case the gcd is $101$
  2. $101$ does not divide $10^6+1$, in which case the gcd is $1$.
5xum
  • 126,227
  • 6
  • 135
  • 211
  • Thanks for your answer!
    How can I find which one of the two options it is?
    Or is this just trying to factor 101 out of 10^6+1
    – Math420 Nov 06 '17 at 14:13
  • @R3E1W4 Dividing $1000001$ by $101$ isn't all that hard, is it? – 5xum Nov 06 '17 at 14:14
  • @R3E1W4 I really think you should accept the other answer (by Michael Rozenberg). It's much more elegant than mine. – 5xum Nov 06 '17 at 14:40
0

Well, the "throw rocks at it until it falls off a cliff approach":

$\gcd (10^6 + 1, 10^2 + 1) = \gcd([10^6 + 1] - 10^4(10^2 + 1), 10^2 + 1)$

$=\gcd (-10^4 + 1, 10^2 + 1) = \gcd(-10^4 + 1 + 10^2(10^2 + 1), 10^2 + 1)$

$= \gcd(10^2 + 1,10^2+1) = 10^2 + 1$.

....

There's also the insightful. $x^n - 1 = (x-1)(x^{n-1} + x^{n-2} + .... + x + 1)$ and if $n$ is odd then $x^n + 1 = (x+1)(x^{n-1} - x^{n-2} + .... + x^2 - x + 1)$ and let $x = 10^2$ and $n = 3$ and... oh,... that's Mike Rozenberg's elegant answer... isn't it?

fleablood
  • 130,341