In 1979 Pan proved a new mean value theorem and applied it to prove Chen’s theorem. In the first part of the talk we will apply this theorem to the representation of a large integer as ap + bP_2. In 1982 Pan made a new attempt on the Goldbach conjecture. In the second part of the talk we will discuss how his approach connects the Goldbach conjecture to equidistribution of some arithmetic functions.