Yeah, when my maths method started to get difficult, I switched to a programming method.
Which is good, because it turned out to be wrong anyway. I found the error: instead of summing 1/2*k*(k+1) between k=1 and k=y, I needed to sum 1/2*k*(k+1) + 1 between k=1 and k=y-1.
__________________
Self-referential sigs do not a humourous poster make.
|