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