A substance which gives brick red flame and breaks down on heating to give oxygen and a brown gas is

1. Magnesium nitrate

2. Calcium nitrate

3. Barium nitrate

4. Strontium nitrate