sum_i=3^10 (3i+2)