3-Methylpyrazolin-5-ones (1a,b) were reacted with cycloalkanones (2a-d) in
the presence of fused sodium acetate to give the corresponding cycloalkylid
ene derivatives (3a-h). Reaction of compounds (3a-h) with malononitrile gav
e the pyrano derivatives (4a-h), which were cyclized to pyranopyrimidines w
ith acetic anhydride/pyridine, formamide and formamide/formic acid.