$n$ is a natural number and after trying the division algorithm
$$\gcd(n^2-3n-1,n-4)=\gcd(n-4,n-1)=\gcd(n-1,-3)=\gcd(n-1,3)$$
For the last part I'm not sure whether it does equal to $\gcd(n-1,3)$. If yes, then should I take the cases where $n$ is $3k+i, 0\le i\le2$?