[C:1](OC(=O)C)(=[O:3])C.[N:8]1[N:12]2[CH2:13][CH2:14][CH2:15][NH:16][C:11]2=[C:10]([CH2:17][CH2:18][C:19]([OH:21])=[O:20])[CH:9]=1>C(O)=O>[CH:1]([N:16]1[CH2:15][CH2:14][CH2:13][N:12]2[N:8]=[CH:9][C:10]([CH2:17][CH2:18][C:19]([OH:21])=[O:20])=[C:11]12)=[O:3]To formic acid (50 ml) was added acetic anhydride (60 ml), and the mixture was stirred at 40° C. for 2 hours. The resulting mixture was added to the above oily product [3-(4,5,6,7-tetrahydropyrazolo[1,5-a]pyrimidin-3-yl)propionic acid] and the mixture was stirred at room temperature for 15 hours. After evaporation of the solvent in vacuo, to the residue was added water. The mixture was neutralized with saturated aqueous sodium hydrogencarbonate solution, and concentrated in vacuo. The residue was dissolved in methanol, and the insoluble materials were removed by filtration. The filtrate was concentrated in vacuo to give 3-(4-formyl-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrimidin-3-yl)propionic acid (23 g) as an oil.