Ad
  • Default User Avatar

    can one explain how the main formula (1 / n!) * (1! + 2! + 3! + ... + n!) been simplified to the above solution (in a simple for loop). Also please recommend me where I can learn the tricks to simply maths to code in efficient way.