#
W.C 1.3 Cube It Up

Find the addition of the sum of the digits for all cubes from 1 to n for the following values of n:

5

500

5,000,000,000

The final answer should be the **multiplication**** of answers for all the above values of n.**

Since the multiplication can be very large, use modulus operation with 1000007 to compute the final answer.

FOR EXAMPLE:

For n=3

1³, 2³, 3³

1,8,27

Sum of digits= 1,8,9

Ans=1+8+9=18%1000007=18

PS: 9³=729. The sum of the digits is not 18, it is 9. The sum of digits is always between 0 and 9.

**
**### This challenge is worth 80 points.

### You must be logged in to submit a solution

View ranklist for this challenge

About scoring and submission