  In this paper, we prove some interesting identities, among average
representation numbers (associated to definite quaternion algebras) and
`degree' of Hecke correspondences on Shimura curves (associated to indefinite
quaternion algebras).
