0

The Task
Given an input positive integer n (from 1 to your language's limit, inclusively), return or output the maximum number of distinct integers that sum to n.
Test Cases
Let f define a valid function according to the task:
>>> f(1)
1
>>> f(23)
6
>>> f(1000000000)
44720
Test Code
For ...