\displaystyle \approx (\frac{\log 3}{q})^j \sum_{0 \leq a, b \leq D} c_{a,b} (ap+bq)^j 2^{an} 3^{bn}. \ \ \ \ \ (5)