By condensation of 1-bromo-5-hexanone (I) with 3-methyl-7-propylxanthine (II) by means of NaOH in refluxing methanol - water.