The quadratic equation x^2-3x+2=0 has the "correct" number of solutions modulo 5 and 7. However, modulo 6 the equation has four solutions; namely, 1, 2, 4, and 5. For what positive integers n does the equation x^2-3x+2=0 have exactly two incongruent solutions modulo n?