Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
lambda and math upper bound solution in Creative category for Count Consecutive Summers by Phil15
from math import ceil, sqrt
count_consecutive_summers = lambda a: sum(not (a-(i-1)*i//2)%i for i in range(1, ceil((1+sqrt(1+8*a))/2)))
Dec. 5, 2018