Determine the sum of all (distinct) positive integers $n$, such that for some integer $a$,
$n^2 -an + 6a = 0.$