a=1时,方程化为:-2x+2=0,得:x=1,符合a不为1时,两根积=a(a+1)/(a-1)因为a-1与a互素,a-1与a+1至多有因子2所以为使a(a+1)/(a-1)为整数,只可能为a-1=-2, -1 ,1,2即a=-1,0,2, 3两根和=(a^2+1)/(a-1)须为正整数,因此有a>1所以只能取a=2,3a=2时,方程为x^2-5x+6=0,x=2,3, 符合a=3时,方程为2x^2-10x+12=0, x=2,3,符合综合得:a=1, 2, 3