Project Euler #254: Sums of Digit Factorials

  • + 0 comments

    Many indeed make a mistake here. A non decreasing series is the one where any a(i)>=a(j), for all i>j. While on the other hand, if the series is said to be increasing then, it should strictly increase, which means a(i)>a(j), for all i>j. (Here a(m) denotes the mth term of the series, and i,j,m belong to positive integers). Thus, a series like 1,2,2,3,4,5,5,5,6,7,... must not be accounted as increasing but rather, non decreasing, as the terms never decrease but may remain the same. I do not know how include LaTeX here in HackerRank, but I think you will get that at least.. Hope this helps!