How would you write a summation problem such as 2a2/6a+b3 + 4a3/12a+b4 .....to the nth term( in others words infinite). I just need help with writing the math into code. I know how to do everything else. Thank you

for expressions which would sum towards infinity, you require another expression or some kind of limit-testing function (to see if it converges or diverges) which would resolve your problem because simply summing numbers to infinity will obviously yield an infinite "number" result and this simply won't be appropriate.