[N:1]1([C:8]2[CH:17]=[CH:16][C:11]([C:12]([O:14][CH3:15])=[O:13])=[CH:10][N:9]=2)[CH2:7][CH2:6][CH2:5][NH:4][CH2:3][CH2:2]1.C=O.[CH:20](O)=O>O>[CH3:20][N:4]1[CH2:5][CH2:6][CH2:7][N:1]([C:8]2[CH:17]=[CH:16][C:11]([C:12]([O:14][CH3:15])=[O:13])=[CH:10][N:9]=2)[CH2:2][CH2:3]1A mixture of 1.50 g of methyl 6-homopiperazinylnicotinate (compound 13), 0.68 g of 35% formaldehyde and 1.2 g of formic acid was stirred at 70°-80° C. for 2 hours. The resulting mixture was poured into 120 ml of water and extracted with ethyl acetate. The extract was washed twice with water and once with a saturated aqueous sodium chloride solution, then dried over anhydrous magnesium sulfate and concentrated. Purification of the concentrate by column chromatography (silica gel; ethyl acetate : methanol=1:2) gave 1.35 g of methyl 6-(4-methyl-1-homopiperazinyl)nicotinate (yield 85%).