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.