The following group of numbers are written according to a certain rule: - 1,2, - 3,4, - 5 ·······, then what is the nth number

The following group of numbers are written according to a certain rule: - 1,2, - 3,4, - 5 ·······, then what is the nth number

an=(-1)^n*n