Determine all integers $n \geqslant 1$ for which there exists a pair of positive integers $(a, b)$ such that no cube of a prime divides $a^2+b+3$ and
$$
\frac{a b+3 b+8}{a^2+b+3}=n
$$

Let's think step by step and output the final answer within \boxed{}.
user