[NH2:1][C:2]1[NH:7][C:6](=[O:8])[N:5]([CH3:9])[C:4](=[O:10])[CH:3]=1.[N:11]([O-])=[O:12].[Na+]>C(O)(=O)C.O>[NH2:1][C:2]1[NH:7][C:6](=[O:8])[N:5]([CH3:9])[C:4](=[O:10])[C:3]=1[N:11]=[O:12]To a solution of 6-amino-3-methylpyrimidine-2,4(1H,3H)-dione (6 g, 42.6 mmol) in acetic acid (50 mL) was added a solution of sodium nitrite (6.8 g, 98.6 mmol) in water (20 mL) dropwise, then the mixture was stirred at room temperature for 1 h. The mixture was filtered, the filter cake was washed with water and ethanol and dried under vacuum to give 6-amino-3-methyl-5-nitrosopyrimidine-2,4(1H,3H)-dione as violet solid, which was used directly in the next step.