def SumsCount(n):
    if n <= 1:
        return 0
sumsCount = 0
for i in range(1, n):
    sumsCount += SumsCount(n - i) + 1
return sumsCount
How to to determine the number of ways a number can be broken down into sums of smaller numbers