Triple sum

  • + 0 comments

    thank you so much! i was stuck trying to understand what was wrong with my c# solution running in case 4. long n is the return value, so i needed to cast long in the expression as n += ((long)i+1)*((long)k+1);