Problem

Source: 2021 ISL N1

Tags: number theory, IMO Shortlist, Divisibility, cubefree, Hi



Find all positive integers $n\geq1$ such that there exists a pair $(a,b)$ of positive integers, such that $a^2+b+3$ is not divisible by the cube of any prime, and $$n=\frac{ab+3b+8}{a^2+b+3}.$$