The average distance on the Sierpiński gasket