[C:1]([O:7]CC)(=O)[CH2:2][C:3]([CH3:5])=O.[CH3:10][C:11]1[CH:12]=[C:13]([NH2:16])[NH:14][N:15]=1>>[CH3:10][C:11]1[CH:12]=[C:13]2[NH:16][C:3]([CH3:5])=[CH:2][C:1](=[O:7])[N:14]2[N:15]=1In Step 1, ethyl acetoacetate and 5-methyl-2H-pyrazol-3-ylamine are condensed to form 2,5-dimethyl-4H-pyrazolo[1,5-a]pyrimidine-7-one (1) in refluxing acetic acid.