1

Determine all positive integers $n$ which have a divisor $d$ with the property that $dn+1$ is a divisor of $d^2 + n^2$.

So i formed the equation that $$\frac{n}{d} = \frac{d^2 + n^2}{dn + 1}$$

And ended with $n = d^3$ which I think is wrong If I'm wrong can someone please show me the right way.

Will Jagy
  • 139,541
0327
  • 337
  • Try something like: $n=d\dot k_1$ and $d^2 + n^2=k_2(dn+1) $ –  Aug 17 '15 at 07:06
  • 1
    $n$ being divisible by $d$ and $d^2+n^2$ being divisible by $dn+1$ doesn't mean their quotients must be the same. – oxeimon Aug 17 '15 at 07:06
  • 1
    This is a problem from an old math-contest (may be IMO from 90's?). $n=d^3$ is, indeed, one family of solutions, but not all of them. Another family is given by $d=m^3$, $n=m^5-m$. I recall working it out that there is an infinite family of such pairs of parametrized solutions. The contest problem called for proving that the ratio $(d^2+n^2)/(dn+1)$ is a square, whenever it is an integer. – Jyrki Lahtonen Aug 17 '15 at 07:19
  • I added the contest-math tag (admittedly this is not the exact question). I removed the division-algebra tag, because this has nothing whatsoever to do with division algebras. It should be a rule that users read the tag wiki before using it (not gonna happen, I know :-) – Jyrki Lahtonen Aug 17 '15 at 07:21
  • Found it!. You be the judge whether this is a duplicate or not. – Jyrki Lahtonen Aug 17 '15 at 07:23
  • Hmm. You seem to have the extra condition that $d$ should be divisor of $n$. I guess that means this is not a duplicate. @6005 I just noticed a difference. A fun problem anyway :-) My earlier comment with other solutions should no longer be taken too seriously, because I thought the only requirement was that $dn+1$ should be a factor of $d^2+n^2$. Leaving it there for reasons of "historical significance", or as evidence that my brain is often on a blind auto-pilot. Flag, if you want it removed as irrelevant. Or just @-ping me :-) – Jyrki Lahtonen Aug 17 '15 at 07:37
  • 1
    Anyway, K. Bedekar's solution is not correct. You were given that $1+dn$ is a factor of $d^2+n^2$ and that $d$ is a factor of $n$. This does not justify your conclusion that the two ratios $n/d$ and $(n^2+d^2)/(1+dn)$ would be equal. – Jyrki Lahtonen Aug 17 '15 at 07:51
  • My answer proves that $n = d^3$. I have now added some more detail to clarify any parts that might have confused you. If you comment on my answer, I can clarify anything else that you don't follow. – Caleb Stanford Aug 24 '15 at 04:57

2 Answers2

6

Write $n = cd$. Then \begin{align*} 1 + dn \mid d^2 + n^2 &\iff 1 + cd^2 \mid d^2 + c^2 d^2 \\ &\iff 1 + cd^2 \mid d^2 (1 + c^2) \\ &\iff 1 + cd^2 \mid 1 + c^2 \quad \quad \quad (\text{since } 1 + cd^2 \text{ and } d \text{ are relatively prime}) \\ &\iff 1 + cd^2 \mid 1 + c^2 - (1 + cd^2) = c^2 - cd^2 \\ &\iff 1 + cd^2 \mid c(c - d^2) \\ &\iff 1 + cd^2 \mid c - d^2. \quad \quad \quad (\text{since } 1 + cd^2 \text{ and } c \text{ are relatively prime}) \\ \end{align*}

Therefore, we restate the problem as follows: find all positive integers $\boldsymbol{c,d}$ such that $\boldsymbol{1 + cd^2 \mid c - d^2}$.

There are three cases: $c - d^2 = 0$, $c - d^2 > 0$, and $c - d^2 < 0$.

  • Case 1: $c - d^2 = 0$

    Here we get that $n = cd = d^3$, which is indeed one possible solution.

  • Case 2: $c - d^2 > 0$.

    In this case, $c - d^2$ is a positive multiple of $1 + cd^2$, so $1 + cd^2 \le c - d^2$, so $cd^2 - c + d^2 - 1 \le -2$, so $(c + 1)(d^2 - 1) \le -2$. But this is a contradiction, since $c+1$ and $d^2-1$ are nonnegative.

  • Case 3: $c - d^2 < 0$.

    In this case, $d^2 - c$ is a positive multiple of $1 + cd^2$, so $1 + cd^2 \le d^2 - c$, so $cd^2 - d^2 + c - 1 \le -2$, so $(c - 1)(d^2 + 1) \le -2$. But this is a contradiction, since $c+1$ and $d^2-1$ are nonnegative.

Therefore, the only solution is $n = d^3$.

0

This is an additional remark, not really an answer to the question. I shall not provide a proof either, but the technique I used to get this result is basically Vieta Jumping. I have to post as an answer because the comment is too long.

It is well known (at least you can find a proof of this extraordinary claim in the link given above) that, if $a,b\in\mathbb{N}_0$ are such that $k:=\frac{a^2+b^2}{ab+1}$ is an integer, then $k=m^2$ for some $m\in\mathbb{N}_0$. For a fixed $m$, every solution $(a,b)\in\mathbb{N}_0\times\mathbb{N}_0$ to $\frac{a^2+b^2}{ab+1}=m^2$ is either of the form $\left(x_r(m),x_{r+1}(m)\right)$ or of the form $\left(x_{r+1}(m),x_r(m)\right)$, where $\left(x_r(m)\right)_{r=0}^\infty$ is the sequence defined by $x_0(m)=0$, $x_1(m)=m$, and $$x_r(m)=m^2\cdot x_{r-1}(m)-x_{r-2}(m)$$ for all integers $r\geq 2$. Note that $$x_r(m)=\frac{m}{\sqrt{m^4-4}}\left(\left(\frac{m^2+\sqrt{m^4-4}}{2}\right)^r-\left(\frac{m^2-\sqrt{m^4-4}}{2}\right)^r\right)$$ for all $r\in\mathbb{N}_0$.

Note that, for $m\geq 2$, $\left(x_r(m)\right)_{r=0}^\infty$ is strictly increasing. Hence, if $r\geq 1$ and $x_r(m)\mid x_{r+1}(m)$, then by the relation $x_{r+1}(m)=m^2\cdot x_{r}(m)-x_{r-1}(m)$, we have that $x_{r}(m)\mid x_{r-1}(m)$. This can occur only when $r=1$ (where $x_{r-1}(m)=x_0(m)=0$). Thus, if $(a,b)=(d,n)$ is a solution in $\mathbb{N}\times\mathbb{N}$ with $d\mid n$ to $\frac{a^2+b^2}{ab+1}=m^2$ with $m\geq 2$, then $$(d,n)=\left(x_1(m),x_2(m)\right)=\left(m,m^3\right)\,.$$ For $m=1$, it is obvious that the only solution $(a,b)\in\mathbb{N}\times\mathbb{N}$ to $\frac{a^2+b^2}{ab+1}=m^2$ is $(a,b)=(1,1)$.

Batominovski
  • 49,629