Rules for Assigning Oxidation Numbers
Rule 6
6. The sum of the oxidation numbers in the  
    formula of a polyatomic ion is equal to  
    its charge
X + 3(-2) = -1
N      O   
\ X = +5
\ X = +6
X + 4(-2) = -2
S      O