sum of ((l-1) choose (k-1))*(r choose k) for k = 1 to min(l, r)