An iterative solution of the three-colour problem on a random lattice