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!

Math420
  • 339

3 Answers3

6

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
  • 123,496
  • 6
  • 128
  • 204
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
  • 124,253