sum((-12*a+3)*k^(a+b)) from a=1 to b-1 and b=1 to n