• + 0 comments

    For th group, how many number were used in previous groups?

    So, the first number in th group will be th odd number.

    th odd number is given as . So, the first number in th group will be

    Now, the group is an AP with first term given above and common difference (odd numbers).

    In C++, return 1L * k * k * k.