A good integer is defined if its largest factor is $n-6$. How many integers satisfy this statement?
I know that $7$, $9$ and $12$ satisfy this statement and 12 should intuitively be the upper limit of $n$. From this I can deduce that $n-6$ should be a factor of $6$. This is more gut feeling than actual maths though. I want to know if there is a more elegant way of solving this question instead of brute force and maybe even a general solution to questions of similar caliber. At the very least a way to put this is equation form. I reckon there should be one since this question is from a math competition I went to and their questions almost always have elegant answers.
Hint If $(n-6)$ divides $n$, since $n-6$ also divides $n-6$, $n-6$ must divide $n-(n-6)$.