  We introduce a homogeneous method to deal with summations with homogeneous
factors. Then we use it to compute main terms in the asymptotics of distance
energy of square lattices in circles, which relates to the conjecture of
distinct distances by Erdos.
