Skip to main content
added 148 characters in body
Source Link

IfAt first glance I thought that for $(1)$ to have solutions $n$ is nothad to be a multiple of $3$ the first condition cannot, which is wrong when $x$ can be satisfieda rational, obviouslyas Gerhard pointed out. So what follows is a solution when $n=3m$ for some $m$. Remain to be treated the cases $n\equiv1 \pmod 3$ and $n\equiv2 \pmod 3$.

Otherwise saySo $n=3m$, with $m\equiv3 \pmod 4$.

Writing $m=4p+3$ condition $(1)$ becomes $$\dfrac{3(4p+3)+x+3(4p+3)^2}{4}\in \mathbb{N}$$

which is equivalent to $$\dfrac{1+x+3}{4}\in \mathbb{N}$$ so that $$(1)\Longleftrightarrow x\in 4\mathbb{N}$$.

Now if you plug in $n=3(4p+3)$ and $x=4q$ into $(2)$, you get massive simplifications into

$$\dfrac{(4p+3)(p+1)(3q+9(4p+3)(p+1))}{q}\in \mathbb{N}$$

showing that for instance any factor of $(4p+3)(p+1)$ will do.

Conclusion: putwhen $p=\dfrac{n-9}{12}$.$n\equiv0 \pmod 3$

  • If $p$$p=\dfrac{n-9}{12}$ is not an integer then there are no solutions.,
  • If $p$ is an integer then $x=4(p+1)$ is a solution.

If $n$ is not a multiple of $3$ the first condition cannot be satisfied, obviously.

Otherwise say $n=3m$, with $m\equiv3 \pmod 4$.

Writing $m=4p+3$ condition $(1)$ becomes $$\dfrac{3(4p+3)+x+3(4p+3)^2}{4}\in \mathbb{N}$$

which is equivalent to $$\dfrac{1+x+3}{4}\in \mathbb{N}$$ so that $$(1)\Longleftrightarrow x\in 4\mathbb{N}$$.

Now if you plug in $n=3(4p+3)$ and $x=4q$ into $(2)$, you get massive simplifications into

$$\dfrac{(4p+3)(p+1)(3q+9(4p+3)(p+1))}{q}\in \mathbb{N}$$

showing that for instance any factor of $(4p+3)(p+1)$ will do.

Conclusion: put $p=\dfrac{n-9}{12}$.

  • If $p$ is not an integer then there are no solutions.
  • If $p$ is an integer then $x=4(p+1)$ is a solution.

At first glance I thought that for $(1)$ to have solutions $n$ had to be a multiple of $3$, which is wrong when $x$ can be a rational, as Gerhard pointed out. So what follows is a solution when $n=3m$ for some $m$. Remain to be treated the cases $n\equiv1 \pmod 3$ and $n\equiv2 \pmod 3$.

So $n=3m$, with $m\equiv3 \pmod 4$.

Writing $m=4p+3$ condition $(1)$ becomes $$\dfrac{3(4p+3)+x+3(4p+3)^2}{4}\in \mathbb{N}$$

which is equivalent to $$\dfrac{1+x+3}{4}\in \mathbb{N}$$ so that $$(1)\Longleftrightarrow x\in 4\mathbb{N}$$.

Now if you plug in $n=3(4p+3)$ and $x=4q$ into $(2)$, you get massive simplifications into

$$\dfrac{(4p+3)(p+1)(3q+9(4p+3)(p+1))}{q}\in \mathbb{N}$$

showing that for instance any factor of $(4p+3)(p+1)$ will do.

Conclusion: when $n\equiv0 \pmod 3$

  • $p=\dfrac{n-9}{12}$ is an integer,
  • $x=4(p+1)$ is a solution.
Source Link

If $n$ is not a multiple of $3$ the first condition cannot be satisfied, obviously.

Otherwise say $n=3m$, with $m\equiv3 \pmod 4$.

Writing $m=4p+3$ condition $(1)$ becomes $$\dfrac{3(4p+3)+x+3(4p+3)^2}{4}\in \mathbb{N}$$

which is equivalent to $$\dfrac{1+x+3}{4}\in \mathbb{N}$$ so that $$(1)\Longleftrightarrow x\in 4\mathbb{N}$$.

Now if you plug in $n=3(4p+3)$ and $x=4q$ into $(2)$, you get massive simplifications into

$$\dfrac{(4p+3)(p+1)(3q+9(4p+3)(p+1))}{q}\in \mathbb{N}$$

showing that for instance any factor of $(4p+3)(p+1)$ will do.

Conclusion: put $p=\dfrac{n-9}{12}$.

  • If $p$ is not an integer then there are no solutions.
  • If $p$ is an integer then $x=4(p+1)$ is a solution.