Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why am I getting a wrong answer for this sum?

I'm trying to simplify a sum with some minima in it. I started with this.

sum(i, i, 0, min(k-1, la+lb))

1/2k^2 - 1/2k

Doesn't look good. What am I doing wrong?