mediant dynamical systems and diagram coefficient method