How do I use n as an integer?

Dear all,

how can I run a computation with a variable n as an integer in WolframAlpha or Mathematica? So that, for instance, sin(n*pi)=0 etc.?

Thanks!
Clemens

The syntax for this would be:

Assuming[Element[n, Integers], Simplify[Sin[ n Pi]]]

You can also do this by natural language with a statement like:

"Simplify Sin( Pi n) assuming n is an integer"

This should work in Wolfram|Alpha and for natural language processing in Mathematica.

Hey Sean, thanks a lot! Works like a charm :slight_smile: