float fun(float n){float i= 1;float sum = 0;for(while i <= n){ sum+= 1f / (a * (a+3)); a+=3;}} float result = fun(31f);