Question 45Determine all positive integers $n$ such that $(n^3+39n-2)n!+17\cdot 21^n+5$ is a perfect square.