DSolve[a*n*y[x] + (b + n + a*x)*Derivative[1][y][x] + x*Derivative[2][y][x] == 0,y[x],x]