Calculates the sum of all strictly increasing values in a given base.