Ad
  • Custom User Avatar

    Javascript.
    And what I've found is that my sum, for large numbers, starts to be different from the correct value (I've checked it with wolfram alpha and also with a quick implementation in python).

  • Custom User Avatar

    I've optimized my solution (expanded the summation) but I'm still stuck with the expected value of 55100.
    Is there any clever trick that needs to be applied when we reach those huge values for m?
    Thanks in advance!