[H-].[Na+].[N:3]1[N:7]2[CH2:8][CH2:9][CH2:10][NH:11][C:6]2=[CH:5][CH:4]=1.CI.[C:14](OCC)(=O)C>CN(C)C=O>[CH3:14][N:11]1[CH2:10][CH2:9][CH2:8][N:7]2[N:3]=[CH:4][CH:5]=[C:6]12To a suspension of 62% sodium hydride (1.41 g) in N,N-dimethylformamide (30 ml) was added 4,5,6,7-tetrahydropyrazolo[1,5-a]pyrimidine (4.5 g) under ice-cooling. To this solution was added dropwise methyl iodide (2.27 ml) under ice-cooling, and the mixture was stirred at the same temperature for 1.5 hours. The reaction mixture was poured into ethyl acetate (50 ml), and the resulting precipitate was filtered off. The filtrate was evaporated to give 4-methyl-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrimidine (5.05 g).