Note that the fraction can be expressed as \(1+\frac{18}n\), so $n$ must be a factor of \(18\). The sum of all factors of \(18\) is \(\boxed{39}\).