Question: How to add the condition that "n is an integer"?

I have the following simple dsolve code:

ode := diff(y(x), x, x) + (n*pi)^2*y(x) = A^3*sin(n*pi*x)^3;
dsol1 := dsolve({ode, y(0) = 0, y(1) = 0}, y(x));

 

How to declare that n is an integer here?

 

Thanks!

 

Please Wait...