Starting from a positive integer , at each step we subtract from the largest perfect cube not exceeding , until becomes . For example, with the procedure ends in steps:
Let denote the number of steps of the procedure. Thus .
Let denote the sum of for all positive integers strictly less than . For example, .