4

Problem from the 1987 Leningrad Math Olympiad:

Is there a positive integer $n$ such that $ n^n + \left( n + 1 \right)^n $ is divisible by $ 1987 $?

The provided solution:

The answer is yes. Take $ n = 993 $ and we get $ \left( n + n + 1 \right) \mid \left( n^n + (n+1)^n \right) $, so $ 2n + 1 = 1997 $, which gives $ n = 993 $.

My question is: really? How is it obvious that $ \left( n + n + 1 \right) \mid \left( n^n + (n+1)^n \right) $? Is that a true statement for all $n$? If so, what is the proof? Thanks!

3 Answers3

7

The key is the following known observation: If $n=2k+1$ then $$a^{n}+b^n=a^{2k+1}+b^{2k+1}=(a+b)( \mbox{junk} )$$ Thus, for all $n$ odd, $a+b$ divides $a^n+b^n$.

N. S.
  • 132,525
2

$a+b\mid a^k+b^k$ when $k$ is odd.

Thomas Andrews
  • 177,126
2

${\bf Hint}\ \ n-m\mid n^k-m^k.\ $ So $\,\ m=-(n\!+\!1),\,\ k\,$ odd
${\rm yields}\ \ 2n\!+\!1\mid n^k\!+(n\!+\!1)^k.\,\ $ Yours is case $\,k=n.$

Remark $\ $ The above divisibility can be viewed as a special case of the Factor Theorem $\, x-y\,\ \mid\,\ f(x)-f(y)\ $ for any polynomial $\,f\,$ or, by the Polynomial Congruence Theorem $\,x\equiv y\Rightarrow f(x)\equiv f(y),\,$ where above $\,f(x) = x^k.$

Bill Dubuque
  • 272,048