[CH3:1][C:2]1[CH:3]=[N+:4]([O-:11])[CH:5]=[CH:6][C:7]=1[N+:8]([O-:10])=[O:9].CNC.O.[CH3:16][N:17]([CH3:20])[CH:18]=O>>[CH3:16][N:17]([CH3:20])/[CH:18]=[CH:1]/[C:2]1[CH:3]=[N+:4]([O-:11])[CH:5]=[CH:6][C:7]=1[N+:8]([O-:10])=[O:9]To the stirred solution of 3-methyl-4-nitropyridine 1-oxide (600 mg, 3.8 mmol, Step b) in dimethylformamide was added dimethylformamide and dimethylamine (1.14 mL, 8.5 mmol) drop wise at room temperature. After complete addition, the reaction mixture was stirred at 90° C. for 15 hours. The reaction mixture was poured on cold water and the precipitated solid was filtered, washed with water and dried to get (E)-N,N-dimethyl-2-(4-nitro-1-oxidopyridin-3-yl)ethenamine (470 mg, 50%).