seriesWithRisingLength with bug