Skip to main content

Challenge 438: A negative expression

When does this expression have a negative value?

In the following expression, a and n are integers:

(a-1)n(a-3)2n(a-5)3n(a-7)4n...(a-197)99n(a-199)100n

When does the expression have a negative value? You should carefully state conditions on both a and n.