r/learnquant • • 4d ago

interview prep Quant Interview Question

Post image
57 Upvotes

20 comments sorted by

View all comments

1

u/RhubarbNo8040 3d ago

x(x-1) = (xC2)*2

Hence the value of 100x99 + 99x98 + ….
= 2 x (summation of nC2) for 2 to 100.

=(k-1)(k)(k+1)/3 for k = 100

You need to subtract the value of k=1 (ie 0).
I think this approach is faster if you revise Basic summations